#20197B#20197B

#20197B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.156 H 275.1°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#20197B
RGBrgb(32, 25, 123)
HSLhsl(244, 66%, 29%)
HSVhsv(244, 80%, 48%)
CMYKcmyk(74%, 79.7%, 0%, 51.8%)
CIE-LABlab(17.61, 36.25, -53.75)
CIE-LCHlch(17.61, 64.83, 304.00°)
OKLaboklab(30.55% 0.0139 -0.1554)
OKLCHoklch(30.55% 0.156 275.1)
XYZxyz(4.5173, 2.4320, 18.9664)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20197B #747B19
analogous
#19437B #20197B #51197B
triadic
#20197B #7B2019 #197B20
tetradic
#20197B #7B1943 #747B19 #197B51
square
#20197B #7B1943 #747B19 #197B51
split-complementary
#20197B #7B5119 #437B19
monochromatic
#070519 #130F48 #20197B #2D23AE #4338D7

Accessibility & contrast

On white

14.13
#20197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#20197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20197B
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20197B#FFFFFF#000000##FFFFFF
##20197B1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #20197b;
/* rgb */ color: rgb(32, 25, 123);
/* oklch */ color: oklch(30.6% 0.156 275.1);
Tailwind
colors: {
  custom: {
    50: '#6b58a2',
    500: '#20197b',
    950: '#000000',
  },
}
SCSS
$custom: #20197b;
$custom-light: #6b58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#20197b",
  "rgb": {
    "r": 32,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 244.286,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30551,
    "c": 0.15605,
    "h": 275.1
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

primary
#20197B
secondary
#A8AF40
accent
#E93FDD
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #20197B

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

Preview Lab → · Contrast checker → · Palette generator →

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