#212E7C#212E7C

#212E7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.133 H 270.5°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#212E7C
RGBrgb(33, 46, 124)
HSLhsl(231, 58%, 31%)
HSVhsv(231, 73%, 49%)
CMYKcmyk(73.4%, 62.9%, 0%, 51.4%)
CIE-LABlab(22.76, 23.22, -45.92)
CIE-LCHlch(22.76, 51.45, 296.83°)
OKLaboklab(34.33% 0.0011 -0.1325)
OKLCHoklch(34.33% 0.133 270.5)
XYZxyz(5.2410, 3.7320, 19.5090)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E7C #7C6F21
analogous
#215B7C #212E7C #41217C
triadic
#212E7C #7C212E #2E7C21
tetradic
#212E7C #7C215B #7C6F21 #217C41
square
#212E7C #7C215B #7C6F21 #217C41
split-complementary
#212E7C #7C4121 #5B7C21
monochromatic
#070A1B #141C4C #212E7C #2E40AC #495CCF

Accessibility & contrast

On white

12.02
#212E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#212E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E7C
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E7C#FFFFFF#000000##FFFFFF
##212E7C1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212e7c;
/* rgb */ color: rgb(33, 46, 124);
/* oklch */ color: oklch(34.3% 0.133 270.5);
Tailwind
colors: {
  custom: {
    50: '#6a66a3',
    500: '#212e7c',
    950: '#000000',
  },
}
SCSS
$custom: #212e7c;
$custom-light: #6a66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#212e7c",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 231.429,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34326,
    "c": 0.1325,
    "h": 270.5
  },
  "luminance": 0.03733
}

Semantic roles & 50–950 ramp

primary
#212E7C
secondary
#AFA04A
accent
#CB47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #212E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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