#20196B#20196B

#20196B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.135 H 277.5°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#20196B
RGBrgb(32, 25, 107)
HSLhsl(245, 62%, 26%)
HSVhsv(245, 77%, 42%)
CMYKcmyk(70.1%, 76.6%, 0%, 58%)
CIE-LABlab(15.82, 30.71, -46.37)
CIE-LCHlch(15.82, 55.62, 303.52°)
OKLaboklab(28.75% 0.0176 -0.1339)
OKLCHoklch(28.75% 0.135 277.5)
XYZxyz(3.5963, 2.0636, 14.1159)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20196B #646B19
analogous
#193B6B #20196B #49196B
triadic
#20196B #6B2019 #196B20
tetradic
#20196B #6B193B #646B19 #196B49
square
#20196B #6B193B #646B19 #196B49
split-complementary
#20196B #6B4919 #3B6B19
monochromatic
#070619 #110D39 #20196B #2F259D #3E30CE

Accessibility & contrast

On white

14.86
#20196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#20196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20196B
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20196B#FFFFFF#000000##FFFFFF
##20196B1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #20196b;
/* rgb */ color: rgb(32, 25, 107);
/* oklch */ color: oklch(28.8% 0.135 277.5);
Tailwind
colors: {
  custom: {
    50: '#675796',
    500: '#20196b',
    950: '#000000',
  },
}
SCSS
$custom: #20196b;
$custom-light: #675796;
$custom-dark: #000000;
JSON
{
  "hex": "#20196b",
  "rgb": {
    "r": 32,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 245.122,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28752,
    "c": 0.13507,
    "h": 277.5
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#20196B
secondary
#98A13F
accent
#E543D7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #20196B

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

Preview Lab → · Contrast checker → · Palette generator →

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