#202897#202897

#202897 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.177 H 270.5°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#202897
RGBrgb(32, 40, 151)
HSLhsl(236, 65%, 36%)
HSVhsv(236, 79%, 59%)
CMYKcmyk(78.8%, 73.5%, 0%, 40.8%)
CIE-LABlab(23.86, 37.14, -60.96)
CIE-LCHlch(23.86, 71.39, 301.35°)
OKLaboklab(35.91% 0.0015 -0.1765)
OKLCHoklch(35.91% 0.177 270.5)
XYZxyz(6.9385, 4.0583, 29.6898)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#202897 #978F20
analogous
#206397 #202897 #532097
triadic
#202897 #972028 #289720
tetradic
#202897 #972063 #978F20 #209753
square
#202897 #972063 #978F20 #209753
split-complementary
#202897 #975320 #639720
monochromatic
#0B0D32 #151B64 #202897 #2B35C9 #565FDB

Accessibility & contrast

On white

11.59
#202897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#202897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #202897
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##202897#FFFFFF#000000##FFFFFF
##2028971.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.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: #202897;
/* rgb */ color: rgb(32, 40, 151);
/* oklch */ color: oklch(35.9% 0.177 270.5);
Tailwind
colors: {
  custom: {
    50: '#7163b7',
    500: '#202897',
    950: '#000000',
  },
}
SCSS
$custom: #202897;
$custom-light: #7163b7;
$custom-dark: #000000;
JSON
{
  "hex": "#202897",
  "rgb": {
    "r": 32,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 235.966,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3591,
    "c": 0.17654,
    "h": 270.5
  },
  "luminance": 0.04059
}

Semantic roles & 50–950 ramp

primary
#202897
secondary
#BFB854
accent
#DD40E8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #202897

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

Preview Lab → · Contrast checker → · Palette generator →

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