#212E6D#212E6D

#212E6D is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.0% C 0.110 H 270.4°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#212E6D
RGBrgb(33, 46, 109)
HSLhsl(230, 54%, 28%)
HSVhsv(230, 70%, 43%)
CMYKcmyk(69.7%, 57.8%, 0%, 57.3%)
CIE-LABlab(21.51, 17.36, -38.36)
CIE-LCHlch(21.51, 42.11, 294.34°)
OKLaboklab(33% 0.0008 -0.1103)
OKLCHoklch(33% 0.11 270.4)
XYZxyz(4.3636, 3.3810, 14.8877)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E6D #6D6021
analogous
#21546D #212E6D #3A216D
triadic
#212E6D #6D212E #2E6D21
tetradic
#212E6D #6D2154 #6D6021 #216D3A
square
#212E6D #6D2154 #6D6021 #216D3A
split-complementary
#212E6D #6D3A21 #546D21
monochromatic
#070A17 #131A3E #212E6D #2F429C #4259C6

Accessibility & contrast

On white

12.53
#212E6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#212E6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E6D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E6D#FFFFFF#000000##FFFFFF
##212E6D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376F
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#003D48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212e6d;
/* rgb */ color: rgb(33, 46, 109);
/* oklch */ color: oklch(33.0% 0.110 270.4);
Tailwind
colors: {
  custom: {
    50: '#666697',
    500: '#212e6d',
    950: '#000000',
  },
}
SCSS
$custom: #212e6d;
$custom-light: #666697;
$custom-dark: #000000;
JSON
{
  "hex": "#212e6d",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 109
  },
  "hsl": {
    "h": 229.737,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32996,
    "c": 0.1103,
    "h": 270.4
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#212E6D
secondary
#A19249
accent
#C44BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #212E6D

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

Preview Lab → · Contrast checker → · Palette generator →

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