#20165E#20165E

#20165E is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.9% C 0.121 H 280.8°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#20165E
RGBrgb(32, 22, 94)
HSLhsl(248, 62%, 23%)
HSVhsv(248, 77%, 37%)
CMYKcmyk(66%, 76.6%, 0%, 63.1%)
CIE-LABlab(13.76, 28.00, -41.15)
CIE-LCHlch(13.76, 49.78, 304.23°)
OKLaboklab(26.87% 0.0227 -0.1187)
OKLCHoklch(26.87% 0.121 280.8)
XYZxyz(2.9023, 1.6888, 10.7605)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20165E #545E16
analogous
#16305E #20165E #44165E
triadic
#20165E #5E2016 #165E20
tetradic
#20165E #5E1630 #545E16 #165E44
square
#20165E #5E1630 #545E16 #165E44
split-complementary
#20165E #5E4416 #305E16
monochromatic
#080619 #0F0A2C #20165E #312290 #422DC1

Accessibility & contrast

On white

15.70
#20165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#20165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20165E
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20165E#FFFFFF#000000##FFFFFF
##20165E1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #20165e;
/* rgb */ color: rgb(32, 22, 94);
/* oklch */ color: oklch(26.9% 0.121 280.8);
Tailwind
colors: {
  custom: {
    50: '#65548c',
    500: '#20165e',
    950: '#000000',
  },
}
SCSS
$custom: #20165e;
$custom-light: #65548c;
$custom-dark: #000000;
JSON
{
  "hex": "#20165e",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 248.333,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26869,
    "c": 0.12082,
    "h": 280.8
  },
  "luminance": 0.01689
}

Semantic roles & 50–950 ramp

primary
#20165E
secondary
#89953B
accent
#E543CF
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20165E

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

Preview Lab → · Contrast checker → · Palette generator →

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