#202A8B#202A8B

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

Color values

HEX#202A8B
RGBrgb(32, 42, 139)
HSLhsl(234, 63%, 34%)
HSVhsv(234, 77%, 55%)
CMYKcmyk(77%, 69.8%, 0%, 45.5%)
CIE-LABlab(23.09, 31.50, -54.81)
CIE-LCHlch(23.09, 63.22, 299.89°)
OKLaboklab(34.98% 0.0019 -0.1586)
OKLCHoklch(34.98% 0.159 270.7)
XYZxyz(6.0822, 3.8264, 24.8391)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202A8B #8B8120
analogous
#205F8B #202A8B #4B208B
triadic
#202A8B #8B202A #2A8B20
tetradic
#202A8B #8B205F #8B8120 #208B4B
square
#202A8B #8B205F #8B8120 #208B4B
split-complementary
#202A8B #8B4B20 #5F8B20
monochromatic
#090C28 #151B59 #202A8B #2B39BD #4F5CD6

Accessibility & contrast

On white

11.90
#202A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#202A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202A8B
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202A8B#FFFFFF#000000##FFFFFF
##202A8B1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #202a8b;
/* rgb */ color: rgb(32, 42, 139);
/* oklch */ color: oklch(35.0% 0.159 270.7);
Tailwind
colors: {
  custom: {
    50: '#6e64ae',
    500: '#202a8b',
    950: '#000000',
  },
}
SCSS
$custom: #202a8b;
$custom-light: #6e64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#202a8b",
  "rgb": {
    "r": 32,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 234.393,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3498,
    "c": 0.1586,
    "h": 270.7
  },
  "luminance": 0.03827
}

Semantic roles & 50–950 ramp

primary
#202A8B
secondary
#BAAF4D
accent
#D642E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #202A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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