#212D66#212D66

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

Color values

HEX#212D66
RGBrgb(33, 45, 102)
HSLhsl(230, 51%, 26%)
HSVhsv(230, 68%, 40%)
CMYKcmyk(67.6%, 55.9%, 0%, 60%)
CIE-LABlab(20.67, 15.32, -35.18)
CIE-LCHlch(20.67, 38.37, 293.53°)
OKLaboklab(32.19% 0.0014 -0.1009)
OKLCHoklch(32.19% 0.101 270.8)
XYZxyz(3.9631, 3.1591, 12.9687)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D66 #665A21
analogous
#215066 #212D66 #382166
triadic
#212D66 #66212D #2D6621
tetradic
#212D66 #662150 #665A21 #216638
square
#212D66 #662150 #665A21 #216638
split-complementary
#212D66 #663821 #506621
monochromatic
#070A17 #121938 #212D66 #304194 #4057C1

Accessibility & contrast

On white

12.87
#212D66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#212D66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D66
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D66#FFFFFF#000000##FFFFFF
##212D661.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093568
Deuteranopia (green-blind)
#002F65
Tritanopia (blue-blind)
#003A44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212d66;
/* rgb */ color: rgb(33, 45, 102);
/* oklch */ color: oklch(32.2% 0.101 270.8);
Tailwind
colors: {
  custom: {
    50: '#656592',
    500: '#212d66',
    950: '#000000',
  },
}
SCSS
$custom: #212d66;
$custom-light: #656592;
$custom-dark: #000000;
JSON
{
  "hex": "#212d66",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 102
  },
  "hsl": {
    "h": 229.565,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32191,
    "c": 0.10096,
    "h": 270.8
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#212D66
secondary
#9A8C49
accent
#C24DDB
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #212D66

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

Preview Lab → · Contrast checker → · Palette generator →

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