#20198C#20198C

#20198C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.177 H 273.1°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#20198C
RGBrgb(32, 25, 140)
HSLhsl(244, 70%, 32%)
HSVhsv(244, 82%, 55%)
CMYKcmyk(77.1%, 82.1%, 0%, 45.1%)
CIE-LABlab(19.62, 41.90, -61.16)
CIE-LCHlch(19.62, 74.14, 304.41°)
OKLaboklab(32.55% 0.0096 -0.177)
OKLCHoklch(32.55% 0.177 273.1)
XYZxyz(5.6753, 2.8952, 25.0656)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20198C #858C19
analogous
#194C8C #20198C #59198C
triadic
#20198C #8C2019 #198C20
tetradic
#20198C #8C194C #858C19 #198C59
square
#20198C #8C194C #858C19 #198C59
split-complementary
#20198C #8C5919 #4C8C19
monochromatic
#080624 #141058 #20198C #2C22C0 #4C42DD

Accessibility & contrast

On white

13.30
#20198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#20198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20198C
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20198C#FFFFFF#000000##FFFFFF
##20198C1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20198c;
/* rgb */ color: rgb(32, 25, 140);
/* oklch */ color: oklch(32.5% 0.177 273.1);
Tailwind
colors: {
  custom: {
    50: '#7059af',
    500: '#20198c',
    950: '#000000',
  },
}
SCSS
$custom: #20198c;
$custom-light: #7059af;
$custom-dark: #000000;
JSON
{
  "hex": "#20198c",
  "rgb": {
    "r": 32,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 243.652,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32545,
    "c": 0.17722,
    "h": 273.1
  },
  "luminance": 0.02896
}

Semantic roles & 50–950 ramp

primary
#20198C
secondary
#B7BE43
accent
#ED3BE2
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #20198C

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

Preview Lab → · Contrast checker → · Palette generator →

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