#20188C#20188C

#20188C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.178 H 273.2°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#20188C
RGBrgb(32, 24, 140)
HSLhsl(244, 71%, 32%)
HSVhsv(244, 83%, 55%)
CMYKcmyk(77.1%, 82.9%, 0%, 45.1%)
CIE-LABlab(19.45, 42.40, -61.45)
CIE-LCHlch(19.45, 74.66, 304.61°)
OKLaboklab(32.42% 0.01 -0.1778)
OKLCHoklch(32.42% 0.178 273.2)
XYZxyz(5.6543, 2.8532, 25.0586)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20188C #848C18
analogous
#184A8C #20188C #5A188C
triadic
#20188C #8C2018 #188C20
tetradic
#20188C #8C184A #848C18 #188C5A
square
#20188C #8C184A #848C18 #188C5A
split-complementary
#20188C #8C5A18 #4A8C18
monochromatic
#080624 #140F58 #20188C #2C21C0 #4B40DE

Accessibility & contrast

On white

13.37
#20188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#20188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20188C
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20188C#FFFFFF#000000##FFFFFF
##20188C1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20188c;
/* rgb */ color: rgb(32, 24, 140);
/* oklch */ color: oklch(32.4% 0.178 273.2);
Tailwind
colors: {
  custom: {
    50: '#7058af',
    500: '#20188c',
    950: '#000000',
  },
}
SCSS
$custom: #20188c;
$custom-light: #7058af;
$custom-dark: #000000;
JSON
{
  "hex": "#20188c",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 244.138,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32425,
    "c": 0.17805,
    "h": 273.2
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#20188C
secondary
#B6BF41
accent
#ED3AE1
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #20188C

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

Preview Lab → · Contrast checker → · Palette generator →

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