#212E5E#212E5E

#212E5E is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.8% C 0.087 H 269.5°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#212E5E
RGBrgb(33, 46, 94)
HSLhsl(227, 48%, 25%)
HSVhsv(227, 65%, 37%)
CMYKcmyk(64.9%, 51.1%, 0%, 63.1%)
CIE-LABlab(20.38, 11.47, -30.40)
CIE-LCHlch(20.38, 32.49, 290.67°)
OKLaboklab(31.78% -0.0007 -0.0869)
OKLCHoklch(31.78% 0.087 269.5)
XYZxyz(3.6239, 3.0852, 10.9920)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E5E #5E5121
analogous
#214D5E #212E5E #33215E
triadic
#212E5E #5E212E #2E5E21
tetradic
#212E5E #5E214D #5E5121 #215E33
square
#212E5E #5E214D #5E5121 #215E33
split-complementary
#212E5E #5E3321 #4D5E21
monochromatic
#080B17 #111831 #212E5E #31448B #415AB9

Accessibility & contrast

On white

12.99
#212E5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212E5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E5E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E5E#FFFFFF#000000##FFFFFF
##212E5E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163460
Deuteranopia (green-blind)
#0C2F5D
Tritanopia (blue-blind)
#003941
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212e5e;
/* rgb */ color: rgb(33, 46, 94);
/* oklch */ color: oklch(31.8% 0.087 269.5);
Tailwind
colors: {
  custom: {
    50: '#63668c',
    500: '#212e5e',
    950: '#000000',
  },
}
SCSS
$custom: #212e5e;
$custom-light: #63668c;
$custom-dark: #000000;
JSON
{
  "hex": "#212e5e",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 94
  },
  "hsl": {
    "h": 227.213,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31784,
    "c": 0.08687,
    "h": 269.5
  },
  "luminance": 0.03085
}

Semantic roles & 50–950 ramp

primary
#212E5E
secondary
#928349
accent
#BB50D8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06050C
muted
#7A7A7D

Preview Lab

Preview with #212E5E

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

Preview Lab → · Contrast checker → · Palette generator →

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