#20185B#20185B

#20185B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.9% C 0.114 H 280.9°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#20185B
RGBrgb(32, 24, 91)
HSLhsl(247, 58%, 23%)
HSVhsv(247, 74%, 36%)
CMYKcmyk(64.8%, 73.6%, 0%, 64.3%)
CIE-LABlab(13.92, 25.65, -38.89)
CIE-LCHlch(13.92, 46.59, 303.41°)
OKLaboklab(26.89% 0.0215 -0.112)
OKLCHoklch(26.89% 0.114 280.9)
XYZxyz(2.8100, 1.7155, 10.0785)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20185B #535B18
analogous
#18325B #20185B #41185B
triadic
#20185B #5B2018 #185B20
tetradic
#20185B #5B1832 #535B18 #185B41
square
#20185B #5B1832 #535B18 #185B41
split-complementary
#20185B #5B4118 #325B18
monochromatic
#090618 #0F0B2B #20185B #31258B #4232BC

Accessibility & contrast

On white

15.63
#20185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#20185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20185B
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20185B#FFFFFF#000000##FFFFFF
##20185B1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#002A37
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #20185b;
/* rgb */ color: rgb(32, 24, 91);
/* oklch */ color: oklch(26.9% 0.114 280.9);
Tailwind
colors: {
  custom: {
    50: '#64558a',
    500: '#20185b',
    950: '#000000',
  },
}
SCSS
$custom: #20185b;
$custom-light: #64558a;
$custom-dark: #000000;
JSON
{
  "hex": "#20185b",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 247.164,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26886,
    "c": 0.1141,
    "h": 280.9
  },
  "luminance": 0.01716
}

Semantic roles & 50–950 ramp

primary
#20185B
secondary
#87923D
accent
#E146CF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20185B

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

Preview Lab → · Contrast checker → · Palette generator →

#20185B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva