#20336F#20336F

#20336F is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.107 H 267.3°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#20336F
RGBrgb(32, 51, 111)
HSLhsl(226, 55%, 28%)
HSVhsv(226, 71%, 44%)
CMYKcmyk(71.2%, 54.1%, 0%, 56.5%)
CIE-LABlab(23.07, 14.42, -37.12)
CIE-LCHlch(23.07, 39.83, 291.22°)
OKLaboklab(34.21% -0.005 -0.1066)
OKLCHoklch(34.21% 0.107 267.3)
XYZxyz(4.6477, 3.8220, 15.5286)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20336F #6F5C20
analogous
#205A6F #20336F #35206F
triadic
#20336F #6F2033 #336F20
tetradic
#20336F #6F205A #6F5C20 #206F35
square
#20336F #6F205A #6F5C20 #206F35
split-complementary
#20336F #6F3520 #5A6F20
monochromatic
#070B18 #121D3F #20336F #2E499F #4162C8

Accessibility & contrast

On white

11.90
#20336F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#20336F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20336F
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20336F#FFFFFF#000000##FFFFFF
##20336F1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3B71
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20336f;
/* rgb */ color: rgb(32, 51, 111);
/* oklch */ color: oklch(34.2% 0.107 267.3);
Tailwind
colors: {
  custom: {
    50: '#666a99',
    500: '#20336f',
    950: '#000000',
  },
}
SCSS
$custom: #20336f;
$custom-light: #666a99;
$custom-dark: #000000;
JSON
{
  "hex": "#20336f",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 225.57,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3421,
    "c": 0.10672,
    "h": 267.3
  },
  "luminance": 0.03822
}

Semantic roles & 50–950 ramp

primary
#20336F
secondary
#A38D48
accent
#BB49DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #20336F

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

Preview Lab → · Contrast checker → · Palette generator →

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