#20316A#20316A

#20316A is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.4% C 0.102 H 268.0°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#20316A
RGBrgb(32, 49, 106)
HSLhsl(226, 54%, 27%)
HSVhsv(226, 70%, 42%)
CMYKcmyk(69.8%, 53.8%, 0%, 58.4%)
CIE-LABlab(22.10, 13.85, -35.47)
CIE-LCHlch(22.10, 38.08, 291.33°)
OKLaboklab(33.35% -0.0035 -0.1018)
OKLCHoklch(33.35% 0.102 268)
XYZxyz(4.2946, 3.5439, 14.0906)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20316A #6A5920
analogous
#20566A #20316A #34206A
triadic
#20316A #6A2031 #316A20
tetradic
#20316A #6A2056 #6A5920 #206A34
square
#20316A #6A2056 #6A5920 #206A34
split-complementary
#20316A #6A3420 #566A20
monochromatic
#070B18 #121B3B #20316A #2E4799 #3F5EC5

Accessibility & contrast

On white

12.29
#20316A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20316A
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20316A#FFFFFF#000000##FFFFFF
##20316A1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10386C
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#003E48
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20316a;
/* rgb */ color: rgb(32, 49, 106);
/* oklch */ color: oklch(33.4% 0.102 268.0);
Tailwind
colors: {
  custom: {
    50: '#656895',
    500: '#20316a',
    950: '#000000',
  },
}
SCSS
$custom: #20316a;
$custom-light: #656895;
$custom-dark: #000000;
JSON
{
  "hex": "#20316a",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 106
  },
  "hsl": {
    "h": 226.216,
    "s": 53.623,
    "l": 27.059
  },
  "oklch": {
    "l": 0.33354,
    "c": 0.10182,
    "h": 268
  },
  "luminance": 0.03544
}

Semantic roles & 50–950 ramp

primary
#20316A
secondary
#9E8A48
accent
#BB4BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #20316A

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

Preview Lab → · Contrast checker → · Palette generator →

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