#20188E#20188E

#20188E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.180 H 273.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#20188E
RGBrgb(32, 24, 142)
HSLhsl(244, 71%, 33%)
HSVhsv(244, 83%, 56%)
CMYKcmyk(77.5%, 83.1%, 0%, 44.3%)
CIE-LABlab(19.69, 43.05, -62.29)
CIE-LCHlch(19.69, 75.72, 304.65°)
OKLaboklab(32.67% 0.0094 -0.1802)
OKLCHoklch(32.67% 0.18 273)
XYZxyz(5.8032, 2.9127, 25.8423)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20188E #868E18
analogous
#184B8E #20188E #5B188E
triadic
#20188E #8E2018 #188E20
tetradic
#20188E #8E184B #868E18 #188E5B
square
#20188E #8E184B #868E18 #188E5B
split-complementary
#20188E #8E5B18 #4B8E18
monochromatic
#080625 #140F5A #20188E #2C21C2 #4C41DF

Accessibility & contrast

On white

13.27
#20188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#20188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20188E
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20188E#FFFFFF#000000##FFFFFF
##20188E1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20188e;
/* rgb */ color: rgb(32, 24, 142);
/* oklch */ color: oklch(32.7% 0.180 273.0);
Tailwind
colors: {
  custom: {
    50: '#7059b0',
    500: '#20188e',
    950: '#000000',
  },
}
SCSS
$custom: #20188e;
$custom-light: #7059b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20188e",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 244.068,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32665,
    "c": 0.18046,
    "h": 273
  },
  "luminance": 0.02913
}

Semantic roles & 50–950 ramp

primary
#20188E
secondary
#B7C042
accent
#EE3AE2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #20188E

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

Preview Lab → · Contrast checker → · Palette generator →

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