#20316B#20316B

#20316B is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.4% C 0.103 H 268.1°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#20316B
RGBrgb(32, 49, 107)
HSLhsl(226, 54%, 27%)
HSVhsv(226, 70%, 42%)
CMYKcmyk(70.1%, 54.2%, 0%, 58%)
CIE-LABlab(22.18, 14.25, -35.99)
CIE-LCHlch(22.18, 38.71, 291.60°)
OKLaboklab(33.43% -0.0034 -0.1033)
OKLCHoklch(33.43% 0.103 268.1)
XYZxyz(4.3469, 3.5648, 14.3661)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20316B #6B5A20
analogous
#20576B #20316B #35206B
triadic
#20316B #6B2031 #316B20
tetradic
#20316B #6B2057 #6B5A20 #206B35
square
#20316B #6B2057 #6B5A20 #206B35
split-complementary
#20316B #6B3520 #576B20
monochromatic
#070B18 #121B3C #20316B #2E479A #405EC6

Accessibility & contrast

On white

12.26
#20316B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#20316B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20316B
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20316B#FFFFFF#000000##FFFFFF
##20316B1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E396D
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#003F49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20316b;
/* rgb */ color: rgb(32, 49, 107);
/* oklch */ color: oklch(33.4% 0.103 268.1);
Tailwind
colors: {
  custom: {
    50: '#656896',
    500: '#20316b',
    950: '#000000',
  },
}
SCSS
$custom: #20316b;
$custom-light: #656896;
$custom-dark: #000000;
JSON
{
  "hex": "#20316b",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 226.4,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33434,
    "c": 0.10337,
    "h": 268.1
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#20316B
secondary
#9F8B48
accent
#BC4ADD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #20316B

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

Preview Lab → · Contrast checker → · Palette generator →

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