#20165A#20165A

#20165A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.4% C 0.115 H 281.8°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#20165A
RGBrgb(32, 22, 90)
HSLhsl(249, 61%, 22%)
HSVhsv(249, 76%, 35%)
CMYKcmyk(64.4%, 75.6%, 0%, 64.7%)
CIE-LABlab(13.34, 26.59, -39.16)
CIE-LCHlch(13.34, 47.33, 304.18°)
OKLaboklab(26.45% 0.0235 -0.1128)
OKLCHoklch(26.45% 0.115 281.8)
XYZxyz(2.7275, 1.6189, 9.8396)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20165A #505A16
analogous
#162E5A #20165A #42165A
triadic
#20165A #5A2016 #165A20
tetradic
#20165A #5A162E #505A16 #165A42
square
#20165A #5A162E #505A16 #165A42
split-complementary
#20165A #5A4216 #2E5A16
monochromatic
#090619 #0F0A29 #20165A #31228B #432EBC

Accessibility & contrast

On white

15.86
#20165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#20165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20165A
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20165A#FFFFFF#000000##FFFFFF
##20165A1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #20165a;
/* rgb */ color: rgb(32, 22, 90);
/* oklch */ color: oklch(26.4% 0.115 281.8);
Tailwind
colors: {
  custom: {
    50: '#645489',
    500: '#20165a',
    950: '#000000',
  },
}
SCSS
$custom: #20165a;
$custom-light: #645489;
$custom-dark: #000000;
JSON
{
  "hex": "#20165a",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 248.824,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26445,
    "c": 0.11525,
    "h": 281.8
  },
  "luminance": 0.01619
}

Semantic roles & 50–950 ramp

primary
#20165A
secondary
#84913B
accent
#E444CC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20165A

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

Preview Lab → · Contrast checker → · Palette generator →

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