#20335E#20335E

#20335E is a dark, moderate blue. Relative luminance 0.035; OKLCH L 32.9% C 0.080 H 264.5°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#20335E
RGBrgb(32, 51, 94)
HSLhsl(222, 49%, 25%)
HSVhsv(222, 66%, 37%)
CMYKcmyk(66%, 45.7%, 0%, 63.1%)
CIE-LABlab(21.88, 7.68, -28.00)
CIE-LCHlch(21.88, 29.04, 285.33°)
OKLaboklab(32.92% -0.0077 -0.0798)
OKLCHoklch(32.92% 0.08 264.5)
XYZxyz(3.7992, 3.4825, 11.0595)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20335E #5E4B20
analogous
#20525E #20335E #2C205E
triadic
#20335E #5E2033 #335E20
tetradic
#20335E #5E2052 #5E4B20 #205E2C
square
#20335E #5E2052 #5E4B20 #205E2C
split-complementary
#20335E #5E2C20 #525E20
monochromatic
#080C17 #101A30 #20335E #304C8C #3F65B9

Accessibility & contrast

On white

12.38
#20335E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#20335E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20335E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20335E#FFFFFF#000000##FFFFFF
##20335E1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203760
Deuteranopia (green-blind)
#16325D
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #20335e;
/* rgb */ color: rgb(32, 51, 94);
/* oklch */ color: oklch(32.9% 0.080 264.5);
Tailwind
colors: {
  custom: {
    50: '#626a8c',
    500: '#20335e',
    950: '#000000',
  },
}
SCSS
$custom: #20335e;
$custom-light: #626a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#20335e",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 94
  },
  "hsl": {
    "h": 221.613,
    "s": 49.206,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32915,
    "c": 0.08015,
    "h": 264.5
  },
  "luminance": 0.03483
}

Semantic roles & 50–950 ramp

primary
#20335E
secondary
#927B47
accent
#AF4FD9
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #20335E

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

Preview Lab → · Contrast checker → · Palette generator →

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