#202F81#202F81

#202F81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.139 H 269.7°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#202F81
RGBrgb(32, 47, 129)
HSLhsl(231, 60%, 32%)
HSVhsv(231, 75%, 51%)
CMYKcmyk(75.2%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.42, 24.34, -48.01)
CIE-LCHlch(23.42, 53.82, 296.88°)
OKLaboklab(34.93% -0.0008 -0.1386)
OKLCHoklch(34.93% 0.139 269.7)
XYZxyz(5.5733, 3.9245, 21.2284)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202F81 #817220
analogous
#206081 #202F81 #422081
triadic
#202F81 #81202F #2F8120
tetradic
#202F81 #812060 #817220 #208142
square
#202F81 #812060 #817220 #208142
split-complementary
#202F81 #814220 #608120
monochromatic
#080B1F #141D50 #202F81 #2C41B2 #495FD2

Accessibility & contrast

On white

11.76
#202F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#202F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202F81
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202F81#FFFFFF#000000##FFFFFF
##202F811.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #202f81;
/* rgb */ color: rgb(32, 47, 129);
/* oklch */ color: oklch(34.9% 0.139 269.7);
Tailwind
colors: {
  custom: {
    50: '#6b67a6',
    500: '#202f81',
    950: '#000000',
  },
}
SCSS
$custom: #202f81;
$custom-light: #6b67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#202f81",
  "rgb": {
    "r": 32,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 230.722,
    "s": 60.248,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34933,
    "c": 0.13864,
    "h": 269.7
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#202F81
secondary
#B4A349
accent
#CB44E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #202F81

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

Preview Lab → · Contrast checker → · Palette generator →

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