#202F78#202F78

#202F78 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.126 H 269.6°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#202F78
RGBrgb(32, 47, 120)
HSLhsl(230, 58%, 30%)
HSVhsv(230, 73%, 47%)
CMYKcmyk(73.3%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.64, 20.82, -43.58)
CIE-LCHlch(22.64, 48.30, 295.53°)
OKLaboklab(34.11% -0.0008 -0.1257)
OKLCHoklch(34.11% 0.126 269.6)
XYZxyz(5.0012, 3.6957, 18.2154)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202F78 #786920
analogous
#205B78 #202F78 #3D2078
triadic
#202F78 #78202F #2F7820
tetradic
#202F78 #78205B #786920 #20783D
square
#202F78 #78205B #786920 #20783D
split-complementary
#202F78 #783D20 #5B7820
monochromatic
#060918 #131C48 #202F78 #2D42A8 #455CCD

Accessibility & contrast

On white

12.07
#202F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#202F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202F78
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202F78#FFFFFF#000000##FFFFFF
##202F781.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #202f78;
/* rgb */ color: rgb(32, 47, 120);
/* oklch */ color: oklch(34.1% 0.126 269.6);
Tailwind
colors: {
  custom: {
    50: '#6867a0',
    500: '#202f78',
    950: '#000000',
  },
}
SCSS
$custom: #202f78;
$custom-light: #6867a0;
$custom-dark: #000000;
JSON
{
  "hex": "#202f78",
  "rgb": {
    "r": 32,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 229.773,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3411,
    "c": 0.12566,
    "h": 269.6
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#202F78
secondary
#AB9A48
accent
#C747E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #202F78

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

Preview Lab → · Contrast checker → · Palette generator →

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