#212F94#212F94

#212F94 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.165 H 269.7°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#212F94
RGBrgb(33, 47, 148)
HSLhsl(233, 64%, 35%)
HSVhsv(233, 78%, 58%)
CMYKcmyk(77.7%, 68.2%, 0%, 42%)
CIE-LABlab(25.24, 31.69, -56.85)
CIE-LCHlch(25.24, 65.08, 299.14°)
OKLaboklab(36.83% -0.0007 -0.1645)
OKLCHoklch(36.83% 0.165 269.7)
XYZxyz(6.9872, 4.4937, 28.5104)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F94 #948621
analogous
#216894 #212F94 #4D2194
triadic
#212F94 #94212F #2F9421
tetradic
#212F94 #942168 #948621 #21944D
square
#212F94 #942168 #948621 #21944D
split-complementary
#212F94 #944D21 #689421
monochromatic
#0B0F30 #161F62 #212F94 #2C3FC6 #5666D9

Accessibility & contrast

On white

11.06
#212F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#212F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F94
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F94#FFFFFF#000000##FFFFFF
##212F941.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212f94;
/* rgb */ color: rgb(33, 47, 148);
/* oklch */ color: oklch(36.8% 0.165 269.7);
Tailwind
colors: {
  custom: {
    50: '#7067b4',
    500: '#212f94',
    950: '#000000',
  },
}
SCSS
$custom: #212f94;
$custom-light: #7067b4;
$custom-dark: #000000;
JSON
{
  "hex": "#212f94",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 232.696,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36827,
    "c": 0.1645,
    "h": 269.7
  },
  "luminance": 0.04494
}

Semantic roles & 50–950 ramp

primary
#212F94
secondary
#BDB054
accent
#D241E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212F94

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

Preview Lab → · Contrast checker → · Palette generator →

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