#212D94#212D94

#212D94 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.167 H 270.1°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#212D94
RGBrgb(33, 45, 148)
HSLhsl(234, 64%, 35%)
HSVhsv(234, 78%, 58%)
CMYKcmyk(77.7%, 69.6%, 0%, 42%)
CIE-LABlab(24.76, 32.99, -57.64)
CIE-LCHlch(24.76, 66.42, 299.79°)
OKLaboklab(36.48% 0.0004 -0.1668)
OKLCHoklch(36.48% 0.167 270.1)
XYZxyz(6.9091, 4.3375, 28.4843)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D94 #948821
analogous
#216694 #212D94 #4E2194
triadic
#212D94 #94212D #2D9421
tetradic
#212D94 #942166 #948821 #21944E
square
#212D94 #942166 #948821 #21944E
split-complementary
#212D94 #944E21 #669421
monochromatic
#0B0F30 #161E62 #212D94 #2C3CC6 #5664D9

Accessibility & contrast

On white

11.24
#212D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#212D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D94
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D94#FFFFFF#000000##FFFFFF
##212D941.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212d94;
/* rgb */ color: rgb(33, 45, 148);
/* oklch */ color: oklch(36.5% 0.167 270.1);
Tailwind
colors: {
  custom: {
    50: '#7066b4',
    500: '#212d94',
    950: '#000000',
  },
}
SCSS
$custom: #212d94;
$custom-light: #7066b4;
$custom-dark: #000000;
JSON
{
  "hex": "#212d94",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 233.739,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36475,
    "c": 0.16683,
    "h": 270.1
  },
  "luminance": 0.04338
}

Semantic roles & 50–950 ramp

primary
#212D94
secondary
#BDB254
accent
#D541E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212D94

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

Preview Lab → · Contrast checker → · Palette generator →

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