#202A8C#202A8C

#202A8C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.160 H 270.6°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#202A8C
RGBrgb(32, 42, 140)
HSLhsl(234, 63%, 34%)
HSVhsv(234, 77%, 55%)
CMYKcmyk(77.1%, 70%, 0%, 45.1%)
CIE-LABlab(23.19, 31.87, -55.27)
CIE-LCHlch(23.19, 63.80, 299.97°)
OKLaboklab(35.08% 0.0018 -0.1599)
OKLCHoklch(35.08% 0.16 270.6)
XYZxyz(6.1556, 3.8558, 25.2257)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202A8C #8C8220
analogous
#20608C #202A8C #4C208C
triadic
#202A8C #8C202A #2A8C20
tetradic
#202A8C #8C2060 #8C8220 #208C4C
square
#202A8C #8C2060 #8C8220 #208C4C
split-complementary
#202A8C #8C4C20 #608C20
monochromatic
#090C28 #151B5A #202A8C #2B39BE #505CD7

Accessibility & contrast

On white

11.86
#202A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #202A8C
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202A8C#FFFFFF#000000##FFFFFF
##202A8C1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #202a8c;
/* rgb */ color: rgb(32, 42, 140);
/* oklch */ color: oklch(35.1% 0.160 270.6);
Tailwind
colors: {
  custom: {
    50: '#6e64af',
    500: '#202a8c',
    950: '#000000',
  },
}
SCSS
$custom: #202a8c;
$custom-light: #6e64af;
$custom-dark: #000000;
JSON
{
  "hex": "#202a8c",
  "rgb": {
    "r": 32,
    "g": 42,
    "b": 140
  },
  "hsl": {
    "h": 234.444,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35083,
    "c": 0.15994,
    "h": 270.6
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#202A8C
secondary
#BAB04E
accent
#D742E6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #202A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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