#212F66#212F66

#212F66 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.6% C 0.098 H 269.5°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#212F66
RGBrgb(33, 47, 102)
HSLhsl(228, 51%, 26%)
HSVhsv(228, 68%, 40%)
CMYKcmyk(67.6%, 53.9%, 0%, 60%)
CIE-LABlab(21.26, 13.89, -34.22)
CIE-LCHlch(21.26, 36.93, 292.09°)
OKLaboklab(32.64% -0.0008 -0.0981)
OKLCHoklch(32.64% 0.098 269.5)
XYZxyz(4.0412, 3.3153, 12.9948)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F66 #665821
analogous
#215266 #212F66 #362166
triadic
#212F66 #66212F #2F6621
tetradic
#212F66 #662152 #665821 #216636
square
#212F66 #662152 #665821 #216636
split-complementary
#212F66 #663621 #526621
monochromatic
#070B17 #121A38 #212F66 #304494 #405AC1

Accessibility & contrast

On white

12.63
#212F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#212F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F66
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F66#FFFFFF#000000##FFFFFF
##212F661.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103668
Deuteranopia (green-blind)
#003065
Tritanopia (blue-blind)
#003C45
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212f66;
/* rgb */ color: rgb(33, 47, 102);
/* oklch */ color: oklch(32.6% 0.098 269.5);
Tailwind
colors: {
  custom: {
    50: '#656792',
    500: '#212f66',
    950: '#000000',
  },
}
SCSS
$custom: #212f66;
$custom-light: #656792;
$custom-dark: #000000;
JSON
{
  "hex": "#212f66",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 102
  },
  "hsl": {
    "h": 227.826,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3264,
    "c": 0.09809,
    "h": 269.5
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#212F66
secondary
#9A8A49
accent
#BE4DDB
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #212F66

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

Preview Lab → · Contrast checker → · Palette generator →

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