#202797#202797

#202797 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.178 H 270.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#202797
RGBrgb(32, 39, 151)
HSLhsl(236, 65%, 36%)
HSVhsv(236, 79%, 59%)
CMYKcmyk(78.8%, 74.2%, 0%, 40.8%)
CIE-LABlab(23.64, 37.75, -61.32)
CIE-LCHlch(23.64, 72.01, 301.62°)
OKLaboklab(35.75% 0.0019 -0.1776)
OKLCHoklch(35.75% 0.178 270.6)
XYZxyz(6.9052, 3.9917, 29.6787)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202797 #979020
analogous
#206297 #202797 #552097
triadic
#202797 #972027 #279720
tetradic
#202797 #972062 #979020 #209755
square
#202797 #972062 #979020 #209755
split-complementary
#202797 #975520 #629720
monochromatic
#0B0D32 #151A64 #202797 #2B34C9 #565EDB

Accessibility & contrast

On white

11.68
#202797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#202797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202797
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202797#FFFFFF#000000##FFFFFF
##2027971.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #202797;
/* rgb */ color: rgb(32, 39, 151);
/* oklch */ color: oklch(35.8% 0.178 270.6);
Tailwind
colors: {
  custom: {
    50: '#7162b7',
    500: '#202797',
    950: '#000000',
  },
}
SCSS
$custom: #202797;
$custom-light: #7162b7;
$custom-dark: #000000;
JSON
{
  "hex": "#202797",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 236.471,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35753,
    "c": 0.17759,
    "h": 270.6
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#202797
secondary
#BFB954
accent
#DE40E8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #202797

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

Preview Lab → · Contrast checker → · Palette generator →

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