#20185C#20185C

#20185C is a dark, moderate blue. Relative luminance 0.017; OKLCH L 27.0% C 0.116 H 280.6°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#20185C
RGBrgb(32, 24, 92)
HSLhsl(247, 59%, 23%)
HSVhsv(247, 74%, 36%)
CMYKcmyk(65.2%, 73.9%, 0%, 63.9%)
CIE-LABlab(14.02, 26.01, -39.40)
CIE-LCHlch(14.02, 47.21, 303.44°)
OKLaboklab(26.99% 0.0213 -0.1135)
OKLCHoklch(26.99% 0.116 280.6)
XYZxyz(2.8535, 1.7328, 10.3072)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20185C #545C18
analogous
#18325C #20185C #42185C
triadic
#20185C #5C2018 #185C20
tetradic
#20185C #5C1832 #545C18 #185C42
square
#20185C #5C1832 #545C18 #185C42
split-complementary
#20185C #5C4218 #325C18
monochromatic
#080618 #0F0B2B #20185C #31258D #4231BD

Accessibility & contrast

On white

15.59
#20185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#20185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20185C
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20185C#FFFFFF#000000##FFFFFF
##20185C1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #20185c;
/* rgb */ color: rgb(32, 24, 92);
/* oklch */ color: oklch(27.0% 0.116 280.6);
Tailwind
colors: {
  custom: {
    50: '#64568b',
    500: '#20185c',
    950: '#000000',
  },
}
SCSS
$custom: #20185c;
$custom-light: #64568b;
$custom-dark: #000000;
JSON
{
  "hex": "#20185c",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 247.059,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26989,
    "c": 0.11552,
    "h": 280.6
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#20185C
secondary
#89933D
accent
#E246CF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #20185C

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

Preview Lab → · Contrast checker → · Palette generator →

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