#212E63#212E63

#212E63 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.2% C 0.095 H 270.0°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#212E63
RGBrgb(33, 46, 99)
HSLhsl(228, 50%, 26%)
HSVhsv(228, 67%, 39%)
CMYKcmyk(66.7%, 53.5%, 0%, 61.2%)
CIE-LABlab(20.74, 13.43, -33.10)
CIE-LCHlch(20.74, 35.72, 292.08°)
OKLaboklab(32.17% 0 -0.0948)
OKLCHoklch(32.17% 0.095 270)
XYZxyz(3.8556, 3.1778, 12.2122)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E63 #635621
analogous
#214F63 #212E63 #352163
triadic
#212E63 #63212E #2E6321
tetradic
#212E63 #63214F #635621 #216335
square
#212E63 #63214F #635621 #216335
split-complementary
#212E63 #633521 #4F6321
monochromatic
#080B17 #121935 #212E63 #304391 #4059BF

Accessibility & contrast

On white

12.84
#212E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#212E63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E63
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E63#FFFFFF#000000##FFFFFF
##212E631.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113565
Deuteranopia (green-blind)
#022F62
Tritanopia (blue-blind)
#003A43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212e63;
/* rgb */ color: rgb(33, 46, 99);
/* oklch */ color: oklch(32.2% 0.095 270.0);
Tailwind
colors: {
  custom: {
    50: '#646690',
    500: '#212e63',
    950: '#000000',
  },
}
SCSS
$custom: #212e63;
$custom-light: #646690;
$custom-dark: #000000;
JSON
{
  "hex": "#212e63",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 99
  },
  "hsl": {
    "h": 228.182,
    "s": 50,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32173,
    "c": 0.09482,
    "h": 270
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#212E63
secondary
#978849
accent
#BE4EDA
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06050C
muted
#7A7A7D

Preview Lab

Preview with #212E63

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

Preview Lab → · Contrast checker → · Palette generator →

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