#20316F#20316F

#20316F is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.8% C 0.109 H 268.4°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#20316F
RGBrgb(32, 49, 111)
HSLhsl(227, 55%, 28%)
HSVhsv(227, 71%, 44%)
CMYKcmyk(71.2%, 55.9%, 0%, 56.5%)
CIE-LABlab(22.48, 15.84, -38.08)
CIE-LCHlch(22.48, 41.24, 292.58°)
OKLaboklab(33.76% -0.003 -0.1094)
OKLCHoklch(33.76% 0.109 268.4)
XYZxyz(4.5622, 3.6510, 15.5001)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20316F #6F5E20
analogous
#20586F #20316F #37206F
triadic
#20316F #6F2031 #316F20
tetradic
#20316F #6F2058 #6F5E20 #206F37
square
#20316F #6F2058 #6F5E20 #206F37
split-complementary
#20316F #6F3720 #586F20
monochromatic
#070A18 #121C3F #20316F #2E469F #415EC8

Accessibility & contrast

On white

12.14
#20316F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20316F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20316F#FFFFFF#000000##FFFFFF
##20316F1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063971
Deuteranopia (green-blind)
#00326E
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #20316f;
/* rgb */ color: rgb(32, 49, 111);
/* oklch */ color: oklch(33.8% 0.109 268.4);
Tailwind
colors: {
  custom: {
    50: '#666899',
    500: '#20316f',
    950: '#000000',
  },
}
SCSS
$custom: #20316f;
$custom-light: #666899;
$custom-dark: #000000;
JSON
{
  "hex": "#20316f",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 111
  },
  "hsl": {
    "h": 227.089,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33762,
    "c": 0.10949,
    "h": 268.4
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#20316F
secondary
#A38F48
accent
#BE49DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #20316F

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

Preview Lab → · Contrast checker → · Palette generator →

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