#20196D#20196D

#20196D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.138 H 277.1°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#20196D
RGBrgb(32, 25, 109)
HSLhsl(245, 63%, 26%)
HSVhsv(245, 77%, 43%)
CMYKcmyk(70.6%, 77.1%, 0%, 57.3%)
CIE-LABlab(16.03, 31.42, -47.31)
CIE-LCHlch(16.03, 56.79, 303.59°)
OKLaboklab(28.97% 0.0171 -0.1367)
OKLCHoklch(28.97% 0.138 277.1)
XYZxyz(3.7027, 2.1061, 14.6764)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20196D #666D19
analogous
#193C6D #20196D #4A196D
triadic
#20196D #6D2019 #196D20
tetradic
#20196D #6D193C #666D19 #196D4A
square
#20196D #6D193C #666D19 #196D4A
split-complementary
#20196D #6D4A19 #3C6D19
monochromatic
#070619 #110E3B #20196D #2F249F #3E31D0

Accessibility & contrast

On white

14.78
#20196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#20196D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20196D
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20196D#FFFFFF#000000##FFFFFF
##20196D1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #20196d;
/* rgb */ color: rgb(32, 25, 109);
/* oklch */ color: oklch(29.0% 0.138 277.1);
Tailwind
colors: {
  custom: {
    50: '#685798',
    500: '#20196d',
    950: '#000000',
  },
}
SCSS
$custom: #20196d;
$custom-light: #685798;
$custom-dark: #000000;
JSON
{
  "hex": "#20196d",
  "rgb": {
    "r": 32,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 245,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28972,
    "c": 0.13775,
    "h": 277.1
  },
  "luminance": 0.02106
}

Semantic roles & 50–950 ramp

primary
#20196D
secondary
#9AA23F
accent
#E642D8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20196D

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

Preview Lab → · Contrast checker → · Palette generator →

#20196D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva