#212E6F#212E6F

#212E6F is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.2% C 0.113 H 270.5°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#212E6F
RGBrgb(33, 46, 111)
HSLhsl(230, 54%, 28%)
HSVhsv(230, 70%, 44%)
CMYKcmyk(70.3%, 58.6%, 0%, 56.5%)
CIE-LABlab(21.67, 18.14, -39.39)
CIE-LCHlch(21.67, 43.37, 294.73°)
OKLaboklab(33.17% 0.0009 -0.1133)
OKLCHoklch(33.17% 0.113 270.5)
XYZxyz(4.4725, 3.4246, 15.4612)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E6F #6F6221
analogous
#21556F #212E6F #3B216F
triadic
#212E6F #6F212E #2E6F21
tetradic
#212E6F #6F2155 #6F6221 #216F3B
square
#212E6F #6F2155 #6F6221 #216F3B
split-complementary
#212E6F #6F3B21 #556F21
monochromatic
#070A18 #131A40 #212E6F #2F429E #4359C7

Accessibility & contrast

On white

12.46
#212E6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212E6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E6F
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E6F#FFFFFF#000000##FFFFFF
##212E6F1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#00316E
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212e6f;
/* rgb */ color: rgb(33, 46, 111);
/* oklch */ color: oklch(33.2% 0.113 270.5);
Tailwind
colors: {
  custom: {
    50: '#676699',
    500: '#212e6f',
    950: '#000000',
  },
}
SCSS
$custom: #212e6f;
$custom-light: #676699;
$custom-dark: #000000;
JSON
{
  "hex": "#212e6f",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 111
  },
  "hsl": {
    "h": 230,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33167,
    "c": 0.11333,
    "h": 270.5
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#212E6F
secondary
#A39449
accent
#C54ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #212E6F

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

Preview Lab → · Contrast checker → · Palette generator →

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