#212697#212697

#212697 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.178 H 271.1°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#212697
RGBrgb(33, 38, 151)
HSLhsl(237, 64%, 36%)
HSVhsv(237, 78%, 59%)
CMYKcmyk(78.1%, 74.8%, 0%, 40.8%)
CIE-LABlab(23.48, 38.44, -61.59)
CIE-LCHlch(23.48, 72.60, 301.97°)
OKLaboklab(35.65% 0.0034 -0.1783)
OKLCHoklch(35.65% 0.178 271.1)
XYZxyz(6.9043, 3.9432, 29.6694)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212697 #979221
analogous
#216197 #212697 #572197
triadic
#212697 #972126 #269721
tetradic
#212697 #972161 #979221 #219757
square
#212697 #972161 #979221 #219757
split-complementary
#212697 #975721 #619721
monochromatic
#0B0D33 #161965 #212697 #2C33C9 #585DDA

Accessibility & contrast

On white

11.74
#212697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#212697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212697
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212697#FFFFFF#000000##FFFFFF
##2126971.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.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: #212697;
/* rgb */ color: rgb(33, 38, 151);
/* oklch */ color: oklch(35.7% 0.178 271.1);
Tailwind
colors: {
  custom: {
    50: '#7261b7',
    500: '#212697',
    950: '#000000',
  },
}
SCSS
$custom: #212697;
$custom-light: #7261b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212697",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 237.458,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35652,
    "c": 0.17835,
    "h": 271.1
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#212697
secondary
#BEBA55
accent
#E041E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212697

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

Preview Lab → · Contrast checker → · Palette generator →

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