#20286B#20286B

#20286B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.116 H 272.6°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#20286B
RGBrgb(32, 40, 107)
HSLhsl(234, 54%, 27%)
HSVhsv(234, 70%, 42%)
CMYKcmyk(70.1%, 62.6%, 0%, 58%)
CIE-LABlab(19.58, 20.66, -40.20)
CIE-LCHlch(19.58, 45.20, 297.20°)
OKLaboklab(31.49% 0.0054 -0.1158)
OKLCHoklch(31.49% 0.116 272.6)
XYZxyz(4.0074, 2.8858, 14.2529)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20286B #6B6320
analogous
#204E6B #20286B #3E206B
triadic
#20286B #6B2028 #286B20
tetradic
#20286B #6B204E #6B6320 #206B3E
square
#20286B #6B204E #6B6320 #206B3E
split-complementary
#20286B #6B3E20 #4E6B20
monochromatic
#070918 #12163C #20286B #2E3A9A #404EC6

Accessibility & contrast

On white

13.31
#20286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#20286B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20286B
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20286B#FFFFFF#000000##FFFFFF
##20286B1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#003945
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20286b;
/* rgb */ color: rgb(32, 40, 107);
/* oklch */ color: oklch(31.5% 0.116 272.6);
Tailwind
colors: {
  custom: {
    50: '#666196',
    500: '#20286b',
    950: '#000000',
  },
}
SCSS
$custom: #20286b;
$custom-light: #666196;
$custom-dark: #000000;
JSON
{
  "hex": "#20286b",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 233.6,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31488,
    "c": 0.11593,
    "h": 272.6
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#20286B
secondary
#9F9648
accent
#CE4ADD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #20286B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#20286B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva