#212C95#212C95

#212C95 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.169 H 270.3°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#212C95
RGBrgb(33, 44, 149)
HSLhsl(234, 64%, 36%)
HSVhsv(234, 78%, 58%)
CMYKcmyk(77.9%, 70.5%, 0%, 41.6%)
CIE-LABlab(24.62, 34.00, -58.48)
CIE-LCHlch(24.62, 67.65, 300.18°)
OKLaboklab(36.41% 0.0008 -0.1693)
OKLCHoklch(36.41% 0.169 270.3)
XYZxyz(6.9508, 4.2939, 28.8904)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C95 #958A21
analogous
#216695 #212C95 #502195
triadic
#212C95 #95212C #2C9521
tetradic
#212C95 #952166 #958A21 #219550
square
#212C95 #952166 #958A21 #219550
split-complementary
#212C95 #955021 #669521
monochromatic
#0B0E31 #161D63 #212C95 #2C3BC7 #5763DA

Accessibility & contrast

On white

11.30
#212C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#212C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C95
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C95#FFFFFF#000000##FFFFFF
##212C951.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212c95;
/* rgb */ color: rgb(33, 44, 149);
/* oklch */ color: oklch(36.4% 0.169 270.3);
Tailwind
colors: {
  custom: {
    50: '#7065b5',
    500: '#212c95',
    950: '#000000',
  },
}
SCSS
$custom: #212c95;
$custom-light: #7065b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212c95",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 234.31,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36406,
    "c": 0.16929,
    "h": 270.3
  },
  "luminance": 0.04295
}

Semantic roles & 50–950 ramp

primary
#212C95
secondary
#BEB454
accent
#D741E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212C95

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

Preview Lab → · Contrast checker → · Palette generator →

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