#20316C#20316C

#20316C is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.5% C 0.105 H 268.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#20316C
RGBrgb(32, 49, 108)
HSLhsl(227, 54%, 27%)
HSVhsv(227, 70%, 42%)
CMYKcmyk(70.4%, 54.6%, 0%, 57.6%)
CIE-LABlab(22.25, 14.65, -36.52)
CIE-LCHlch(22.25, 39.35, 291.85°)
OKLaboklab(33.52% -0.0033 -0.1048)
OKLCHoklch(33.52% 0.105 268.2)
XYZxyz(4.3998, 3.5860, 14.6447)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20316C #6C5B20
analogous
#20576C #20316C #35206C
triadic
#20316C #6C2031 #316C20
tetradic
#20316C #6C2057 #6C5B20 #206C35
square
#20316C #6C2057 #6C5B20 #206C35
split-complementary
#20316C #6C3520 #576C20
monochromatic
#070B18 #121C3D #20316C #2E469B #405EC6

Accessibility & contrast

On white

12.23
#20316C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20316C
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20316C#FFFFFF#000000##FFFFFF
##20316C1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20316c;
/* rgb */ color: rgb(32, 49, 108);
/* oklch */ color: oklch(33.5% 0.105 268.2);
Tailwind
colors: {
  custom: {
    50: '#656897',
    500: '#20316c',
    950: '#000000',
  },
}
SCSS
$custom: #20316c;
$custom-light: #656897;
$custom-dark: #000000;
JSON
{
  "hex": "#20316c",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 108
  },
  "hsl": {
    "h": 226.579,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33516,
    "c": 0.1049,
    "h": 268.2
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20316C

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

Preview Lab → · Contrast checker → · Palette generator →

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