#202A8A#202A8A

#202A8A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.157 H 270.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#202A8A
RGBrgb(32, 42, 138)
HSLhsl(234, 62%, 33%)
HSVhsv(234, 77%, 54%)
CMYKcmyk(76.8%, 69.6%, 0%, 45.9%)
CIE-LABlab(22.99, 31.13, -54.35)
CIE-LCHlch(22.99, 62.63, 299.80°)
OKLaboklab(34.88% 0.002 -0.1572)
OKLCHoklch(34.88% 0.157 270.7)
XYZxyz(6.0095, 3.7973, 24.4561)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202A8A #8A8020
analogous
#205F8A #202A8A #4B208A
triadic
#202A8A #8A202A #2A8A20
tetradic
#202A8A #8A205F #8A8020 #208A4B
square
#202A8A #8A205F #8A8020 #208A4B
split-complementary
#202A8A #8A4B20 #5F8A20
monochromatic
#090C27 #141B58 #202A8A #2C39BC #4E5BD6

Accessibility & contrast

On white

11.93
#202A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#202A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202A8A
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202A8A#FFFFFF#000000##FFFFFF
##202A8A1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #202a8a;
/* rgb */ color: rgb(32, 42, 138);
/* oklch */ color: oklch(34.9% 0.157 270.7);
Tailwind
colors: {
  custom: {
    50: '#6d64ad',
    500: '#202a8a',
    950: '#000000',
  },
}
SCSS
$custom: #202a8a;
$custom-light: #6d64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#202a8a",
  "rgb": {
    "r": 32,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 234.34,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34878,
    "c": 0.15726,
    "h": 270.7
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#202A8A
secondary
#B9AF4D
accent
#D642E5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #202A8A

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

Preview Lab → · Contrast checker → · Palette generator →

#202A8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva