#20336A#20336A

#20336A is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.8% C 0.099 H 266.7°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#20336A
RGBrgb(32, 51, 106)
HSLhsl(225, 54%, 27%)
HSVhsv(225, 70%, 42%)
CMYKcmyk(69.8%, 51.9%, 0%, 58.4%)
CIE-LABlab(22.71, 12.43, -34.50)
CIE-LCHlch(22.71, 36.67, 289.81°)
OKLaboklab(33.81% -0.0056 -0.0989)
OKLCHoklch(33.81% 0.099 266.7)
XYZxyz(4.3801, 3.7149, 14.1191)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20336A #6A5720
analogous
#20586A #20336A #32206A
triadic
#20336A #6A2033 #336A20
tetradic
#20336A #6A2058 #6A5720 #206A32
square
#20336A #6A2058 #6A5720 #206A32
split-complementary
#20336A #6A3220 #586A20
monochromatic
#070B18 #121C3B #20336A #2E4A99 #3F62C5

Accessibility & contrast

On white

12.05
#20336A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#20336A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20336A
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20336A#FFFFFF#000000##FFFFFF
##20336A1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153A6C
Deuteranopia (green-blind)
#033369
Tritanopia (blue-blind)
#004049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #20336a;
/* rgb */ color: rgb(32, 51, 106);
/* oklch */ color: oklch(33.8% 0.099 266.7);
Tailwind
colors: {
  custom: {
    50: '#656a95',
    500: '#20336a',
    950: '#000000',
  },
}
SCSS
$custom: #20336a;
$custom-light: #656a95;
$custom-dark: #000000;
JSON
{
  "hex": "#20336a",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 106
  },
  "hsl": {
    "h": 224.595,
    "s": 53.623,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33812,
    "c": 0.09903,
    "h": 266.7
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#20336A
secondary
#9E8848
accent
#B74BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #20336A

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

Preview Lab → · Contrast checker → · Palette generator →

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