#20286E#20286E

#20286E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.120 H 272.5°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#20286E
RGBrgb(32, 40, 110)
HSLhsl(234, 55%, 28%)
HSVhsv(234, 71%, 43%)
CMYKcmyk(70.9%, 63.6%, 0%, 56.9%)
CIE-LABlab(19.84, 21.82, -41.72)
CIE-LCHlch(19.84, 47.08, 297.61°)
OKLaboklab(31.76% 0.0053 -0.1203)
OKLCHoklch(31.76% 0.12 272.5)
XYZxyz(4.1680, 2.9501, 15.0986)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20286E #6E6620
analogous
#204F6E #20286E #3F206E
triadic
#20286E #6E2028 #286E20
tetradic
#20286E #6E204F #6E6620 #206E3F
square
#20286E #6E204F #6E6620 #206E3F
split-complementary
#20286E #6E3F20 #4F6E20
monochromatic
#070918 #12173F #20286E #2E399D #414FC8

Accessibility & contrast

On white

13.21
#20286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#20286E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20286E
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20286E#FFFFFF#000000##FFFFFF
##20286E1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20286e;
/* rgb */ color: rgb(32, 40, 110);
/* oklch */ color: oklch(31.8% 0.120 272.5);
Tailwind
colors: {
  custom: {
    50: '#676198',
    500: '#20286e',
    950: '#000000',
  },
}
SCSS
$custom: #20286e;
$custom-light: #676198;
$custom-dark: #000000;
JSON
{
  "hex": "#20286e",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 233.846,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31764,
    "c": 0.12039,
    "h": 272.5
  },
  "luminance": 0.0295
}

Semantic roles & 50–950 ramp

primary
#20286E
secondary
#A29948
accent
#CF4ADE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #20286E

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

Preview Lab → · Contrast checker → · Palette generator →

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