#20197E#20197E

#20197E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.160 H 274.7°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#20197E
RGBrgb(32, 25, 126)
HSLhsl(244, 67%, 30%)
HSVhsv(244, 80%, 49%)
CMYKcmyk(74.6%, 80.2%, 0%, 50.6%)
CIE-LABlab(17.96, 37.26, -55.09)
CIE-LCHlch(17.96, 66.51, 304.08°)
OKLaboklab(30.9% 0.0131 -0.1593)
OKLCHoklch(30.9% 0.16 274.7)
XYZxyz(4.7079, 2.5082, 19.9706)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20197E #777E19
analogous
#19457E #20197E #52197E
triadic
#20197E #7E2019 #197E20
tetradic
#20197E #7E1945 #777E19 #197E52
square
#20197E #7E1945 #777E19 #197E52
split-complementary
#20197E #7E5219 #457E19
monochromatic
#06051A #130F4B #20197E #2D23B1 #453AD8

Accessibility & contrast

On white

13.98
#20197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#20197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20197E
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20197E#FFFFFF#000000##FFFFFF
##20197E1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #20197e;
/* rgb */ color: rgb(32, 25, 126);
/* oklch */ color: oklch(30.9% 0.160 274.7);
Tailwind
colors: {
  custom: {
    50: '#6c58a5',
    500: '#20197e',
    950: '#000000',
  },
}
SCSS
$custom: #20197e;
$custom-light: #6c58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20197e",
  "rgb": {
    "r": 32,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 244.158,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30897,
    "c": 0.15986,
    "h": 274.7
  },
  "luminance": 0.02509
}

Semantic roles & 50–950 ramp

primary
#20197E
secondary
#AAB241
accent
#EA3EDE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20197E

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

Preview Lab → · Contrast checker → · Palette generator →

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