#20165D#20165D

#20165D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.8% C 0.119 H 281.0°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#20165D
RGBrgb(32, 22, 93)
HSLhsl(248, 62%, 23%)
HSVhsv(248, 76%, 36%)
CMYKcmyk(65.6%, 76.3%, 0%, 63.5%)
CIE-LABlab(13.66, 27.65, -40.66)
CIE-LCHlch(13.66, 49.17, 304.22°)
OKLaboklab(26.76% 0.0229 -0.1172)
OKLCHoklch(26.76% 0.119 281)
XYZxyz(2.8577, 1.6710, 10.5257)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20165D #535D16
analogous
#162F5D #20165D #44165D
triadic
#20165D #5D2016 #165D20
tetradic
#20165D #5D162F #535D16 #165D44
square
#20165D #5D162F #535D16 #165D44
split-complementary
#20165D #5D4416 #2F5D16
monochromatic
#090619 #0F0A2C #20165D #31228E #422DC0

Accessibility & contrast

On white

15.74
#20165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20165D
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20165D#FFFFFF#000000##FFFFFF
##20165D1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #20165d;
/* rgb */ color: rgb(32, 22, 93);
/* oklch */ color: oklch(26.8% 0.119 281.0);
Tailwind
colors: {
  custom: {
    50: '#64548c',
    500: '#20165d',
    950: '#000000',
  },
}
SCSS
$custom: #20165d;
$custom-light: #64548c;
$custom-dark: #000000;
JSON
{
  "hex": "#20165d",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 248.451,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26762,
    "c": 0.11943,
    "h": 281
  },
  "luminance": 0.01671
}

Semantic roles & 50–950 ramp

primary
#20165D
secondary
#87943B
accent
#E543CE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20165D

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

Preview Lab → · Contrast checker → · Palette generator →

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