#20286A#20286A

#20286A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.4% C 0.114 H 272.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#20286A
RGBrgb(32, 40, 106)
HSLhsl(234, 54%, 27%)
HSVhsv(234, 70%, 42%)
CMYKcmyk(69.8%, 62.3%, 0%, 58.4%)
CIE-LABlab(19.49, 20.27, -39.69)
CIE-LCHlch(19.49, 44.57, 297.05°)
OKLaboklab(31.4% 0.0054 -0.1143)
OKLCHoklch(31.4% 0.114 272.7)
XYZxyz(3.9551, 2.8649, 13.9774)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20286A #6A6220
analogous
#204D6A #20286A #3D206A
triadic
#20286A #6A2028 #286A20
tetradic
#20286A #6A204D #6A6220 #206A3D
square
#20286A #6A204D #6A6220 #206A3D
split-complementary
#20286A #6A3D20 #4D6A20
monochromatic
#070918 #12163B #20286A #2E3A99 #3F4EC5

Accessibility & contrast

On white

13.35
#20286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#20286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20286A
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20286A#FFFFFF#000000##FFFFFF
##20286A1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#003844
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20286a;
/* rgb */ color: rgb(32, 40, 106);
/* oklch */ color: oklch(31.4% 0.114 272.7);
Tailwind
colors: {
  custom: {
    50: '#666195',
    500: '#20286a',
    950: '#000000',
  },
}
SCSS
$custom: #20286a;
$custom-light: #666195;
$custom-dark: #000000;
JSON
{
  "hex": "#20286a",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 233.514,
    "s": 53.623,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31397,
    "c": 0.11445,
    "h": 272.7
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#20286A
secondary
#9E9548
accent
#CD4BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #20286A

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

Preview Lab → · Contrast checker → · Palette generator →

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