#202997#202997

#202997 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.175 H 270.3°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#202997
RGBrgb(32, 41, 151)
HSLhsl(235, 65%, 36%)
HSVhsv(235, 79%, 59%)
CMYKcmyk(78.8%, 72.8%, 0%, 40.8%)
CIE-LABlab(24.09, 36.53, -60.60)
CIE-LCHlch(24.09, 70.75, 301.08°)
OKLaboklab(36.07% 0.001 -0.1755)
OKLCHoklch(36.07% 0.175 270.3)
XYZxyz(6.9726, 4.1265, 29.7012)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202997 #978E20
analogous
#206497 #202997 #522097
triadic
#202997 #972029 #299720
tetradic
#202997 #972064 #978E20 #209752
square
#202997 #972064 #978E20 #209752
split-complementary
#202997 #975220 #649720
monochromatic
#0B0E32 #151B64 #202997 #2B37C9 #5660DB

Accessibility & contrast

On white

11.50
#202997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#202997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202997
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202997#FFFFFF#000000##FFFFFF
##2029971.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #202997;
/* rgb */ color: rgb(32, 41, 151);
/* oklch */ color: oklch(36.1% 0.175 270.3);
Tailwind
colors: {
  custom: {
    50: '#7163b7',
    500: '#202997',
    950: '#000000',
  },
}
SCSS
$custom: #202997;
$custom-light: #7163b7;
$custom-dark: #000000;
JSON
{
  "hex": "#202997",
  "rgb": {
    "r": 32,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 235.462,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36069,
    "c": 0.17547,
    "h": 270.3
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#202997
secondary
#BFB754
accent
#DB40E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #202997

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

Preview Lab → · Contrast checker → · Palette generator →

#202997 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva