#20316E#20316E

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

Color values

HEX#20316E
RGBrgb(32, 49, 110)
HSLhsl(227, 55%, 28%)
HSVhsv(227, 71%, 43%)
CMYKcmyk(70.9%, 55.5%, 0%, 56.9%)
CIE-LABlab(22.41, 15.44, -37.56)
CIE-LCHlch(22.41, 40.61, 292.35°)
OKLaboklab(33.68% -0.0031 -0.1079)
OKLCHoklch(33.68% 0.108 268.3)
XYZxyz(4.5075, 3.6291, 15.2118)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20316E #6E5D20
analogous
#20586E #20316E #36206E
triadic
#20316E #6E2031 #316E20
tetradic
#20316E #6E2058 #6E5D20 #206E36
square
#20316E #6E2058 #6E5D20 #206E36
split-complementary
#20316E #6E3620 #586E20
monochromatic
#070B18 #121C3F #20316E #2E469D #415EC8

Accessibility & contrast

On white

12.17
#20316E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#20316E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20316E
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20316E#FFFFFF#000000##FFFFFF
##20316E1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093970
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #20316e;
/* rgb */ color: rgb(32, 49, 110);
/* oklch */ color: oklch(33.7% 0.108 268.3);
Tailwind
colors: {
  custom: {
    50: '#666898',
    500: '#20316e',
    950: '#000000',
  },
}
SCSS
$custom: #20316e;
$custom-light: #666898;
$custom-dark: #000000;
JSON
{
  "hex": "#20316e",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 110
  },
  "hsl": {
    "h": 226.923,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33679,
    "c": 0.10797,
    "h": 268.3
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#20316E
secondary
#A28E48
accent
#BE4ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #20316E

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

Preview Lab → · Contrast checker → · Palette generator →

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