#202A7C#202A7C

#202A7C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.138 H 271.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#202A7C
RGBrgb(32, 42, 124)
HSLhsl(233, 59%, 31%)
HSVhsv(233, 74%, 49%)
CMYKcmyk(74.2%, 66.1%, 0%, 51.4%)
CIE-LABlab(21.64, 25.84, -47.75)
CIE-LCHlch(21.64, 54.29, 298.42°)
OKLaboklab(33.48% 0.0031 -0.1379)
OKLCHoklch(33.48% 0.138 271.3)
XYZxyz(5.0605, 3.4177, 19.4579)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202A7C #7C7220
analogous
#20587C #202A7C #44207C
triadic
#202A7C #7C202A #2A7C20
tetradic
#202A7C #7C2058 #7C7220 #207C44
square
#202A7C #7C2058 #7C7220 #207C44
split-complementary
#202A7C #7C4420 #587C20
monochromatic
#07091B #131A4B #202A7C #2D3AAD #4756CF

Accessibility & contrast

On white

12.47
#202A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#202A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202A7C
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202A7C#FFFFFF#000000##FFFFFF
##202A7C1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #202a7c;
/* rgb */ color: rgb(32, 42, 124);
/* oklch */ color: oklch(33.5% 0.138 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a63a3',
    500: '#202a7c',
    950: '#000000',
  },
}
SCSS
$custom: #202a7c;
$custom-light: #6a63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#202a7c",
  "rgb": {
    "r": 32,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 233.478,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33484,
    "c": 0.13798,
    "h": 271.3
  },
  "luminance": 0.03418
}

Semantic roles & 50–950 ramp

primary
#202A7C
secondary
#AFA449
accent
#D146E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #202A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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