#20165F#20165F

#20165F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.0% C 0.122 H 280.6°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#20165F
RGBrgb(32, 22, 95)
HSLhsl(248, 62%, 23%)
HSVhsv(248, 77%, 37%)
CMYKcmyk(66.3%, 76.8%, 0%, 62.7%)
CIE-LABlab(13.87, 28.35, -41.65)
CIE-LCHlch(13.87, 50.38, 304.24°)
OKLaboklab(26.98% 0.0224 -0.1201)
OKLCHoklch(26.98% 0.122 280.6)
XYZxyz(2.9475, 1.7069, 10.9984)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20165F #555F16
analogous
#16305F #20165F #44165F
triadic
#20165F #5F2016 #165F20
tetradic
#20165F #5F1630 #555F16 #165F44
square
#20165F #5F1630 #555F16 #165F44
split-complementary
#20165F #5F4416 #305F16
monochromatic
#080619 #0F0A2D #20165F #312291 #412DC2

Accessibility & contrast

On white

15.66
#20165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20165F
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20165F#FFFFFF#000000##FFFFFF
##20165F1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002A39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #20165f;
/* rgb */ color: rgb(32, 22, 95);
/* oklch */ color: oklch(27.0% 0.122 280.6);
Tailwind
colors: {
  custom: {
    50: '#65548d',
    500: '#20165f',
    950: '#000000',
  },
}
SCSS
$custom: #20165f;
$custom-light: #65548d;
$custom-dark: #000000;
JSON
{
  "hex": "#20165f",
  "rgb": {
    "r": 32,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 248.219,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26977,
    "c": 0.1222,
    "h": 280.6
  },
  "luminance": 0.01707
}

Semantic roles & 50–950 ramp

primary
#20165F
secondary
#8A963B
accent
#E542CF
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20165F

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

Preview Lab → · Contrast checker → · Palette generator →

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