#20196C#20196C

#20196C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.136 H 277.3°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#20196C
RGBrgb(32, 25, 108)
HSLhsl(245, 62%, 26%)
HSVhsv(245, 77%, 42%)
CMYKcmyk(70.4%, 76.9%, 0%, 57.6%)
CIE-LABlab(15.93, 31.07, -46.84)
CIE-LCHlch(15.93, 56.21, 303.55°)
OKLaboklab(28.86% 0.0173 -0.1353)
OKLCHoklch(28.86% 0.136 277.3)
XYZxyz(3.6492, 2.0847, 14.3945)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20196C #656C19
analogous
#193B6C #20196C #49196C
triadic
#20196C #6C2019 #196C20
tetradic
#20196C #6C193B #656C19 #196C49
square
#20196C #6C193B #656C19 #196C49
split-complementary
#20196C #6C4919 #3B6C19
monochromatic
#070619 #110D3A #20196C #2F259E #3E30CF

Accessibility & contrast

On white

14.82
#20196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20196C
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20196C#FFFFFF#000000##FFFFFF
##20196C1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #20196c;
/* rgb */ color: rgb(32, 25, 108);
/* oklch */ color: oklch(28.9% 0.136 277.3);
Tailwind
colors: {
  custom: {
    50: '#685797',
    500: '#20196c',
    950: '#000000',
  },
}
SCSS
$custom: #20196c;
$custom-light: #685797;
$custom-dark: #000000;
JSON
{
  "hex": "#20196c",
  "rgb": {
    "r": 32,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 245.06,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28861,
    "c": 0.13641,
    "h": 277.3
  },
  "luminance": 0.02085
}

Semantic roles & 50–950 ramp

primary
#20196C
secondary
#99A13F
accent
#E542D8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #20196C

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

Preview Lab → · Contrast checker → · Palette generator →

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