#202798#202798

#202798 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.179 H 270.6°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#202798
RGBrgb(32, 39, 152)
HSLhsl(237, 65%, 36%)
HSVhsv(237, 79%, 60%)
CMYKcmyk(78.9%, 74.3%, 0%, 40.4%)
CIE-LABlab(23.75, 38.11, -61.76)
CIE-LCHlch(23.75, 72.57, 301.68°)
OKLaboklab(35.86% 0.0018 -0.1788)
OKLCHoklch(35.86% 0.179 270.6)
XYZxyz(6.9867, 4.0243, 30.1082)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202798 #989120
analogous
#206398 #202798 #552098
triadic
#202798 #982027 #279820
tetradic
#202798 #982063 #989120 #209855
square
#202798 #982063 #989120 #209855
split-complementary
#202798 #985520 #639820
monochromatic
#0B0D33 #151A65 #202798 #2B34CB #575FDC

Accessibility & contrast

On white

11.63
#202798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#202798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202798
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202798#FFFFFF#000000##FFFFFF
##2027981.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #202798;
/* rgb */ color: rgb(32, 39, 152);
/* oklch */ color: oklch(35.9% 0.179 270.6);
Tailwind
colors: {
  custom: {
    50: '#7162b7',
    500: '#202798',
    950: '#000000',
  },
}
SCSS
$custom: #202798;
$custom-light: #7162b7;
$custom-dark: #000000;
JSON
{
  "hex": "#202798",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 236.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35862,
    "c": 0.17886,
    "h": 270.6
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#202798
secondary
#BFB954
accent
#DE40E8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #202798

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

Preview Lab → · Contrast checker → · Palette generator →

#202798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva