#20336B#20336B

#20336B is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.9% C 0.101 H 266.9°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#20336B
RGBrgb(32, 51, 107)
HSLhsl(225, 54%, 27%)
HSVhsv(225, 70%, 42%)
CMYKcmyk(70.1%, 52.3%, 0%, 58%)
CIE-LABlab(22.78, 12.82, -35.03)
CIE-LCHlch(22.78, 37.30, 290.11°)
OKLaboklab(33.89% -0.0055 -0.1004)
OKLCHoklch(33.89% 0.101 266.9)
XYZxyz(4.4324, 3.7358, 14.3946)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20336B #6B5820
analogous
#20596B #20336B #33206B
triadic
#20336B #6B2033 #336B20
tetradic
#20336B #6B2059 #6B5820 #206B33
square
#20336B #6B2059 #6B5820 #206B33
split-complementary
#20336B #6B3320 #596B20
monochromatic
#070B18 #121D3C #20336B #2E499A #4062C6

Accessibility & contrast

On white

12.02
#20336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#20336B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20336B
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20336B#FFFFFF#000000##FFFFFF
##20336B1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143A6D
Deuteranopia (green-blind)
#01336A
Tritanopia (blue-blind)
#00404A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #20336b;
/* rgb */ color: rgb(32, 51, 107);
/* oklch */ color: oklch(33.9% 0.101 266.9);
Tailwind
colors: {
  custom: {
    50: '#656a96',
    500: '#20336b',
    950: '#000000',
  },
}
SCSS
$custom: #20336b;
$custom-light: #656a96;
$custom-dark: #000000;
JSON
{
  "hex": "#20336b",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 224.8,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33891,
    "c": 0.10058,
    "h": 266.9
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#20336B
secondary
#9F8948
accent
#B84ADD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #20336B

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

Preview Lab → · Contrast checker → · Palette generator →

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