#20188B#20188B

#20188B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.177 H 273.3°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#20188B
RGBrgb(32, 24, 139)
HSLhsl(244, 71%, 32%)
HSVhsv(244, 83%, 55%)
CMYKcmyk(77%, 82.7%, 0%, 45.5%)
CIE-LABlab(19.32, 42.08, -61.03)
CIE-LCHlch(19.32, 74.13, 304.59°)
OKLaboklab(32.31% 0.0102 -0.1765)
OKLCHoklch(32.31% 0.177 273.3)
XYZxyz(5.5809, 2.8238, 24.6720)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20188B #838B18
analogous
#184A8B #20188B #5A188B
triadic
#20188B #8B2018 #188B20
tetradic
#20188B #8B184A #838B18 #188B5A
square
#20188B #8B184A #838B18 #188B5A
split-complementary
#20188B #8B5A18 #4A8B18
monochromatic
#080623 #140F57 #20188B #2C21BF #4A3FDE

Accessibility & contrast

On white

13.42
#20188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#20188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20188B
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20188B#FFFFFF#000000##FFFFFF
##20188B1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20188b;
/* rgb */ color: rgb(32, 24, 139);
/* oklch */ color: oklch(32.3% 0.177 273.3);
Tailwind
colors: {
  custom: {
    50: '#7058ae',
    500: '#20188b',
    950: '#000000',
  },
}
SCSS
$custom: #20188b;
$custom-light: #7058ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20188b",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 244.174,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32305,
    "c": 0.17683,
    "h": 273.3
  },
  "luminance": 0.02824
}

Semantic roles & 50–950 ramp

primary
#20188B
secondary
#B6BE40
accent
#ED3AE1
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #20188B

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

Preview Lab → · Contrast checker → · Palette generator →

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