#20316D#20316D

#20316D is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.106 H 268.3°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#20316D
RGBrgb(32, 49, 109)
HSLhsl(227, 55%, 28%)
HSVhsv(227, 71%, 43%)
CMYKcmyk(70.6%, 55%, 0%, 57.3%)
CIE-LABlab(22.33, 15.04, -37.04)
CIE-LCHlch(22.33, 39.98, 292.10°)
OKLaboklab(33.6% -0.0032 -0.1064)
OKLCHoklch(33.6% 0.106 268.3)
XYZxyz(4.4533, 3.6074, 14.9266)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20316D #6D5C20
analogous
#20586D #20316D #35206D
triadic
#20316D #6D2031 #316D20
tetradic
#20316D #6D2058 #6D5C20 #206D35
square
#20316D #6D2058 #6D5C20 #206D35
split-complementary
#20316D #6D3520 #586D20
monochromatic
#070B18 #121C3E #20316D #2E469C #405EC7

Accessibility & contrast

On white

12.20
#20316D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#20316D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20316D
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20316D#FFFFFF#000000##FFFFFF
##20316D1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B396F
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20316d;
/* rgb */ color: rgb(32, 49, 109);
/* oklch */ color: oklch(33.6% 0.106 268.3);
Tailwind
colors: {
  custom: {
    50: '#666897',
    500: '#20316d',
    950: '#000000',
  },
}
SCSS
$custom: #20316d;
$custom-light: #666897;
$custom-dark: #000000;
JSON
{
  "hex": "#20316d",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 109
  },
  "hsl": {
    "h": 226.753,
    "s": 54.61,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33597,
    "c": 0.10644,
    "h": 268.3
  },
  "luminance": 0.03608
}

Semantic roles & 50–950 ramp

primary
#20316D
secondary
#A18D48
accent
#BD4ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #20316D

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

Preview Lab → · Contrast checker → · Palette generator →

#20316D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva