#202A7E#202A7E

#202A7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.141 H 271.2°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#202A7E
RGBrgb(32, 42, 126)
HSLhsl(234, 59%, 31%)
HSVhsv(234, 75%, 49%)
CMYKcmyk(74.6%, 66.7%, 0%, 50.6%)
CIE-LABlab(21.83, 26.60, -48.71)
CIE-LCHlch(21.83, 55.50, 298.64°)
OKLaboklab(33.68% 0.003 -0.1407)
OKLCHoklch(33.68% 0.141 271.2)
XYZxyz(5.1882, 3.4688, 20.1307)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202A7E #7E7420
analogous
#20597E #202A7E #45207E
triadic
#202A7E #7E202A #2A7E20
tetradic
#202A7E #7E2059 #7E7420 #207E45
square
#202A7E #7E2059 #7E7420 #207E45
split-complementary
#202A7E #7E4520 #597E20
monochromatic
#07091C #141A4D #202A7E #2C3AAF #4856D0

Accessibility & contrast

On white

12.40
#202A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#202A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202A7E
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202A7E#FFFFFF#000000##FFFFFF
##202A7E1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #202a7e;
/* rgb */ color: rgb(32, 42, 126);
/* oklch */ color: oklch(33.7% 0.141 271.2);
Tailwind
colors: {
  custom: {
    50: '#6a63a4',
    500: '#202a7e',
    950: '#000000',
  },
}
SCSS
$custom: #202a7e;
$custom-light: #6a63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#202a7e",
  "rgb": {
    "r": 32,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 233.617,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33679,
    "c": 0.14078,
    "h": 271.2
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#202A7E
secondary
#B1A649
accent
#D245E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #202A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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