#212794#212794

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

Color values

HEX#212794
RGBrgb(33, 39, 148)
HSLhsl(237, 64%, 35%)
HSVhsv(237, 78%, 58%)
CMYKcmyk(77.7%, 73.6%, 0%, 42%)
CIE-LABlab(23.38, 36.77, -59.91)
CIE-LCHlch(23.38, 70.30, 301.54°)
OKLaboklab(35.48% 0.0035 -0.1734)
OKLCHoklch(35.48% 0.173 271.1)
XYZxyz(6.6962, 3.9118, 28.4134)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212794 #948E21
analogous
#216094 #212794 #552194
triadic
#212794 #942127 #279421
tetradic
#212794 #942160 #948E21 #219455
square
#212794 #942160 #948E21 #219455
split-complementary
#212794 #945521 #609421
monochromatic
#0B0D30 #161A62 #212794 #2C34C6 #565DD9

Accessibility & contrast

On white

11.78
#212794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212794
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212794#FFFFFF#000000##FFFFFF
##2127941.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212794;
/* rgb */ color: rgb(33, 39, 148);
/* oklch */ color: oklch(35.5% 0.173 271.1);
Tailwind
colors: {
  custom: {
    50: '#7162b5',
    500: '#212794',
    950: '#000000',
  },
}
SCSS
$custom: #212794;
$custom-light: #7162b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212794",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 236.87,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35481,
    "c": 0.17348,
    "h": 271.1
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212794

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

Preview Lab → · Contrast checker → · Palette generator →

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