#20198D#20198D

#20198D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.178 H 273.0°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#20198D
RGBrgb(32, 25, 141)
HSLhsl(244, 70%, 33%)
HSVhsv(244, 82%, 55%)
CMYKcmyk(77.3%, 82.3%, 0%, 44.7%)
CIE-LABlab(19.74, 42.22, -61.59)
CIE-LCHlch(19.74, 74.67, 304.43°)
OKLaboklab(32.66% 0.0094 -0.1782)
OKLCHoklch(32.66% 0.178 273)
XYZxyz(5.7494, 2.9248, 25.4557)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20198D #868D19
analogous
#194C8D #20198D #5A198D
triadic
#20198D #8D2019 #198D20
tetradic
#20198D #8D194C #868D19 #198D5A
square
#20198D #8D194C #868D19 #198D5A
split-complementary
#20198D #8D5A19 #4C8D19
monochromatic
#080725 #141059 #20198D #2C22C1 #4C43DE

Accessibility & contrast

On white

13.25
#20198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#20198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20198D
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20198D#FFFFFF#000000##FFFFFF
##20198D1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002A8B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20198d;
/* rgb */ color: rgb(32, 25, 141);
/* oklch */ color: oklch(32.7% 0.178 273.0);
Tailwind
colors: {
  custom: {
    50: '#7059b0',
    500: '#20198d',
    950: '#000000',
  },
}
SCSS
$custom: #20198d;
$custom-light: #7059b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20198d",
  "rgb": {
    "r": 32,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 243.621,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32664,
    "c": 0.17843,
    "h": 273
  },
  "luminance": 0.02925
}

Semantic roles & 50–950 ramp

primary
#20198D
secondary
#B7BF43
accent
#ED3BE2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #20198D

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

Preview Lab → · Contrast checker → · Palette generator →

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