#20197F#20197F

#20197F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.161 H 274.6°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#20197F
RGBrgb(32, 25, 127)
HSLhsl(244, 67%, 30%)
HSVhsv(244, 80%, 50%)
CMYKcmyk(74.8%, 80.3%, 0%, 50.2%)
CIE-LABlab(18.07, 37.60, -55.53)
CIE-LCHlch(18.07, 67.06, 304.10°)
OKLaboklab(31.01% 0.0129 -0.1606)
OKLCHoklch(31.01% 0.161 274.6)
XYZxyz(4.7728, 2.5342, 20.3122)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20197F #787F19
analogous
#19457F #20197F #53197F
triadic
#20197F #7F2019 #197F20
tetradic
#20197F #7F1945 #787F19 #197F53
square
#20197F #7F1945 #787F19 #197F53
split-complementary
#20197F #7F5319 #457F19
monochromatic
#06051A #130F4C #20197F #2D23B2 #453AD8

Accessibility & contrast

On white

13.93
#20197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#20197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20197F
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20197F#FFFFFF#000000##FFFFFF
##20197F1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #20197f;
/* rgb */ color: rgb(32, 25, 127);
/* oklch */ color: oklch(31.0% 0.161 274.6);
Tailwind
colors: {
  custom: {
    50: '#6c58a5',
    500: '#20197f',
    950: '#000000',
  },
}
SCSS
$custom: #20197f;
$custom-light: #6c58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20197f",
  "rgb": {
    "r": 32,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 244.118,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31013,
    "c": 0.16112,
    "h": 274.6
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20197F

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

Preview Lab → · Contrast checker → · Palette generator →

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