#20336E#20336E

#20336E is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.1% C 0.105 H 267.2°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#20336E
RGBrgb(32, 51, 110)
HSLhsl(225, 55%, 28%)
HSVhsv(225, 71%, 43%)
CMYKcmyk(70.9%, 53.6%, 0%, 56.9%)
CIE-LABlab(23.00, 14.02, -36.60)
CIE-LCHlch(23.00, 39.20, 290.96°)
OKLaboklab(34.13% -0.0051 -0.1051)
OKLCHoklch(34.13% 0.105 267.2)
XYZxyz(4.5930, 3.8001, 15.2403)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20336E #6E5B20
analogous
#205A6E #20336E #34206E
triadic
#20336E #6E2033 #336E20
tetradic
#20336E #6E205A #6E5B20 #206E34
square
#20336E #6E205A #6E5B20 #206E34
split-complementary
#20336E #6E3420 #5A6E20
monochromatic
#070B18 #121D3F #20336E #2E499D #4162C8

Accessibility & contrast

On white

11.93
#20336E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20336E
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20336E#FFFFFF#000000##FFFFFF
##20336E1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103B70
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#00414B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #20336e;
/* rgb */ color: rgb(32, 51, 110);
/* oklch */ color: oklch(34.1% 0.105 267.2);
Tailwind
colors: {
  custom: {
    50: '#666a98',
    500: '#20336e',
    950: '#000000',
  },
}
SCSS
$custom: #20336e;
$custom-light: #666a98;
$custom-dark: #000000;
JSON
{
  "hex": "#20336e",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 110
  },
  "hsl": {
    "h": 225.385,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34129,
    "c": 0.10519,
    "h": 267.2
  },
  "luminance": 0.03801
}

Semantic roles & 50–950 ramp

primary
#20336E
secondary
#A28C48
accent
#BA4ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #20336E

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

Preview Lab → · Contrast checker → · Palette generator →

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