#212E5D#212E5D

#212E5D is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.7% C 0.085 H 269.4°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#212E5D
RGBrgb(33, 46, 93)
HSLhsl(227, 48%, 25%)
HSVhsv(227, 65%, 36%)
CMYKcmyk(64.5%, 50.5%, 0%, 63.5%)
CIE-LABlab(20.31, 11.08, -29.85)
CIE-LCHlch(20.31, 31.84, 290.36°)
OKLaboklab(31.71% -0.0008 -0.0853)
OKLCHoklch(31.71% 0.085 269.4)
XYZxyz(3.5793, 3.0673, 10.7572)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E5D #5D5021
analogous
#214C5D #212E5D #32215D
triadic
#212E5D #5D212E #2E5D21
tetradic
#212E5D #5D214C #5D5021 #215D32
square
#212E5D #5D214C #5D5021 #215D32
split-complementary
#212E5D #5D3221 #4C5D21
monochromatic
#080B17 #111830 #212E5D #31448A #415BB7

Accessibility & contrast

On white

13.01
#212E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212E5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E5D
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E5D#FFFFFF#000000##FFFFFF
##212E5D1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17345F
Deuteranopia (green-blind)
#0D2E5C
Tritanopia (blue-blind)
#003941
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212e5d;
/* rgb */ color: rgb(33, 46, 93);
/* oklch */ color: oklch(31.7% 0.085 269.4);
Tailwind
colors: {
  custom: {
    50: '#63668b',
    500: '#212e5d',
    950: '#000000',
  },
}
SCSS
$custom: #212e5d;
$custom-light: #63668b;
$custom-dark: #000000;
JSON
{
  "hex": "#212e5d",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 93
  },
  "hsl": {
    "h": 227,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31707,
    "c": 0.08526,
    "h": 269.4
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#212E5D
secondary
#918149
accent
#BA51D7
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05050C
muted
#7A7A7D

Preview Lab

Preview with #212E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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