#212E94#212E94

#212E94 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.166 H 269.9°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#212E94
RGBrgb(33, 46, 148)
HSLhsl(233, 64%, 35%)
HSVhsv(233, 78%, 58%)
CMYKcmyk(77.7%, 68.9%, 0%, 42%)
CIE-LABlab(25.00, 32.35, -57.25)
CIE-LCHlch(25.00, 65.75, 299.47°)
OKLaboklab(36.65% -0.0002 -0.1657)
OKLCHoklch(36.65% 0.166 269.9)
XYZxyz(6.9477, 4.4147, 28.4972)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E94 #948721
analogous
#216894 #212E94 #4D2194
triadic
#212E94 #94212E #2E9421
tetradic
#212E94 #942168 #948721 #21944D
square
#212E94 #942168 #948721 #21944D
split-complementary
#212E94 #944D21 #689421
monochromatic
#0B0F30 #161E62 #212E94 #2C3EC6 #5665D9

Accessibility & contrast

On white

11.15
#212E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#212E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E94
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E94#FFFFFF#000000##FFFFFF
##212E941.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#003692
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212e94;
/* rgb */ color: rgb(33, 46, 148);
/* oklch */ color: oklch(36.6% 0.166 269.9);
Tailwind
colors: {
  custom: {
    50: '#7067b4',
    500: '#212e94',
    950: '#000000',
  },
}
SCSS
$custom: #212e94;
$custom-light: #7067b4;
$custom-dark: #000000;
JSON
{
  "hex": "#212e94",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 148
  },
  "hsl": {
    "h": 233.217,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3665,
    "c": 0.16568,
    "h": 269.9
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#212E94
secondary
#BDB154
accent
#D441E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212E94

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

Preview Lab → · Contrast checker → · Palette generator →

#212E94 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva