#20286C#20286C

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

Color values

HEX#20286C
RGBrgb(32, 40, 108)
HSLhsl(234, 54%, 27%)
HSVhsv(234, 70%, 42%)
CMYKcmyk(70.4%, 63%, 0%, 57.6%)
CIE-LABlab(19.67, 21.05, -40.71)
CIE-LCHlch(19.67, 45.83, 297.34°)
OKLaboklab(31.58% 0.0054 -0.1173)
OKLCHoklch(31.58% 0.117 272.6)
XYZxyz(4.0603, 2.9070, 14.5316)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20286C #6C6420
analogous
#204E6C #20286C #3E206C
triadic
#20286C #6C2028 #286C20
tetradic
#20286C #6C204E #6C6420 #206C3E
square
#20286C #6C204E #6C6420 #206C3E
split-complementary
#20286C #6C3E20 #4E6C20
monochromatic
#070918 #12173D #20286C #2E399B #404EC6

Accessibility & contrast

On white

13.28
#20286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20286C
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20286C#FFFFFF#000000##FFFFFF
##20286C1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#003945
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20286c;
/* rgb */ color: rgb(32, 40, 108);
/* oklch */ color: oklch(31.6% 0.117 272.6);
Tailwind
colors: {
  custom: {
    50: '#666197',
    500: '#20286c',
    950: '#000000',
  },
}
SCSS
$custom: #20286c;
$custom-light: #666197;
$custom-dark: #000000;
JSON
{
  "hex": "#20286c",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 233.684,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31579,
    "c": 0.11743,
    "h": 272.6
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#20286C
secondary
#A09748
accent
#CE4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #20286C

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

Preview Lab → · Contrast checker → · Palette generator →

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