#212795#212795

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

Color values

HEX#212795
RGBrgb(33, 39, 149)
HSLhsl(237, 64%, 36%)
HSVhsv(237, 78%, 58%)
CMYKcmyk(77.9%, 73.8%, 0%, 41.6%)
CIE-LABlab(23.48, 37.13, -60.35)
CIE-LCHlch(23.48, 70.86, 301.60°)
OKLaboklab(35.59% 0.0033 -0.1747)
OKLCHoklch(35.59% 0.175 271.1)
XYZxyz(6.7757, 3.9436, 28.8320)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212795 #958F21
analogous
#216195 #212795 #552195
triadic
#212795 #952127 #279521
tetradic
#212795 #952161 #958F21 #219555
square
#212795 #952161 #958F21 #219555
split-complementary
#212795 #955521 #619521
monochromatic
#0B0D31 #161A63 #212795 #2C34C7 #575DDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##212795#FFFFFF#000000##FFFFFF
##2127951.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)
#003E98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212795;
/* rgb */ color: rgb(33, 39, 149);
/* oklch */ color: oklch(35.6% 0.175 271.1);
Tailwind
colors: {
  custom: {
    50: '#7162b5',
    500: '#212795',
    950: '#000000',
  },
}
SCSS
$custom: #212795;
$custom-light: #7162b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212795",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 236.897,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35589,
    "c": 0.17477,
    "h": 271.1
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#212795
secondary
#BEB854
accent
#DE41E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212795

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

Preview Lab → · Contrast checker → · Palette generator →

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