#202A7F#202A7F

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

Color values

HEX#202A7F
RGBrgb(32, 42, 127)
HSLhsl(234, 60%, 31%)
HSVhsv(234, 75%, 50%)
CMYKcmyk(74.8%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.93, 26.98, -49.19)
CIE-LCHlch(21.93, 56.10, 298.75°)
OKLaboklab(33.78% 0.0029 -0.1422)
OKLCHoklch(33.78% 0.142 271.2)
XYZxyz(5.2531, 3.4948, 20.4723)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202A7F #7F7520
analogous
#20597F #202A7F #45207F
triadic
#202A7F #7F202A #2A7F20
tetradic
#202A7F #7F2059 #7F7520 #207F45
square
#202A7F #7F2059 #7F7520 #207F45
split-complementary
#202A7F #7F4520 #597F20
monochromatic
#070A1D #141A4E #202A7F #2C3AB0 #4857D1

Accessibility & contrast

On white

12.36
#202A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#202A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202A7F
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202A7F#FFFFFF#000000##FFFFFF
##202A7F1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #202a7f;
/* rgb */ color: rgb(32, 42, 127);
/* oklch */ color: oklch(33.8% 0.142 271.2);
Tailwind
colors: {
  custom: {
    50: '#6b63a5',
    500: '#202a7f',
    950: '#000000',
  },
}
SCSS
$custom: #202a7f;
$custom-light: #6b63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#202a7f",
  "rgb": {
    "r": 32,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 233.684,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33777,
    "c": 0.14219,
    "h": 271.2
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#202A7F
secondary
#B2A749
accent
#D245E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #202A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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