#20165B#20165B

#20165B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.6% C 0.117 H 281.5°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#20165B
RGBrgb(32, 22, 91)
HSLhsl(249, 61%, 22%)
HSVhsv(249, 76%, 36%)
CMYKcmyk(64.8%, 75.8%, 0%, 64.3%)
CIE-LABlab(13.45, 26.94, -39.66)
CIE-LCHlch(13.45, 47.95, 304.19°)
OKLaboklab(26.55% 0.0233 -0.1143)
OKLCHoklch(26.55% 0.117 281.5)
XYZxyz(2.7703, 1.6360, 10.0653)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20165B #515B16
analogous
#162E5B #20165B #43165B
triadic
#20165B #5B2016 #165B20
tetradic
#20165B #5B162E #515B16 #165B43
square
#20165B #5B162E #515B16 #165B43
split-complementary
#20165B #5B4316 #2E5B16
monochromatic
#090619 #0F0A2A #20165B #31228C #432EBE

Accessibility & contrast

On white

15.82
#20165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#20165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20165B
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20165B#FFFFFF#000000##FFFFFF
##20165B1.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20165b;
/* rgb */ color: rgb(32, 22, 91);
/* oklch */ color: oklch(26.6% 0.117 281.5);
Tailwind
colors: {
  custom: {
    50: '#64548a',
    500: '#20165b',
    950: '#000000',
  },
}
SCSS
$custom: #20165b;
$custom-light: #64548a;
$custom-dark: #000000;
JSON
{
  "hex": "#20165b",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 248.696,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2655,
    "c": 0.11665,
    "h": 281.5
  },
  "luminance": 0.01636
}

Semantic roles & 50–950 ramp

primary
#20165B
secondary
#85923B
accent
#E444CD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20165B

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

Preview Lab → · Contrast checker → · Palette generator →

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