#20165C#20165C

#20165C is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.118 H 281.3°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#20165C
RGBrgb(32, 22, 92)
HSLhsl(249, 61%, 22%)
HSVhsv(249, 76%, 36%)
CMYKcmyk(65.2%, 76.1%, 0%, 63.9%)
CIE-LABlab(13.55, 27.30, -40.16)
CIE-LCHlch(13.55, 48.56, 304.20°)
OKLaboklab(26.66% 0.0231 -0.1158)
OKLCHoklch(26.66% 0.118 281.3)
XYZxyz(2.8137, 1.6534, 10.2940)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20165C #525C16
analogous
#162F5C #20165C #43165C
triadic
#20165C #5C2016 #165C20
tetradic
#20165C #5C162F #525C16 #165C43
square
#20165C #5C162F #525C16 #165C43
split-complementary
#20165C #5C4316 #2F5C16
monochromatic
#090619 #0F0A2B #20165C #31228D #422EBF

Accessibility & contrast

On white

15.78
#20165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20165C
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20165C#FFFFFF#000000##FFFFFF
##20165C1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #20165c;
/* rgb */ color: rgb(32, 22, 92);
/* oklch */ color: oklch(26.7% 0.118 281.3);
Tailwind
colors: {
  custom: {
    50: '#64548b',
    500: '#20165c',
    950: '#000000',
  },
}
SCSS
$custom: #20165c;
$custom-light: #64548b;
$custom-dark: #000000;
JSON
{
  "hex": "#20165c",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 248.571,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26656,
    "c": 0.11804,
    "h": 281.3
  },
  "luminance": 0.01654
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20165C

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

Preview Lab → · Contrast checker → · Palette generator →

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