#212897#212897

#212897 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.176 H 270.8°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#212897
RGBrgb(33, 40, 151)
HSLhsl(236, 64%, 36%)
HSVhsv(236, 78%, 59%)
CMYKcmyk(78.1%, 73.5%, 0%, 40.8%)
CIE-LABlab(23.92, 37.23, -60.87)
CIE-LCHlch(23.92, 71.36, 301.45°)
OKLaboklab(35.96% 0.0025 -0.1762)
OKLCHoklch(35.96% 0.176 270.8)
XYZxyz(6.9700, 4.0745, 29.6913)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212897 #979021
analogous
#216397 #212897 #552197
triadic
#212897 #972128 #289721
tetradic
#212897 #972163 #979021 #219755
square
#212897 #972163 #979021 #219755
split-complementary
#212897 #975521 #639721
monochromatic
#0B0D33 #161B65 #212897 #2C35C9 #5860DA

Accessibility & contrast

On white

11.57
#212897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#212897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212897
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212897#FFFFFF#000000##FFFFFF
##2128971.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.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: #212897;
/* rgb */ color: rgb(33, 40, 151);
/* oklch */ color: oklch(36.0% 0.176 270.8);
Tailwind
colors: {
  custom: {
    50: '#7163b7',
    500: '#212897',
    950: '#000000',
  },
}
SCSS
$custom: #212897;
$custom-light: #7163b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212897",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 236.441,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35962,
    "c": 0.17627,
    "h": 270.8
  },
  "luminance": 0.04075
}

Semantic roles & 50–950 ramp

primary
#212897
secondary
#BEB855
accent
#DD41E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212897

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

Preview Lab → · Contrast checker → · Palette generator →

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