#212F65#212F65

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

Color values

HEX#212F65
RGBrgb(33, 47, 101)
HSLhsl(228, 51%, 26%)
HSVhsv(228, 67%, 40%)
CMYKcmyk(67.3%, 53.5%, 0%, 60.4%)
CIE-LABlab(21.19, 13.49, -33.69)
CIE-LCHlch(21.19, 36.29, 291.83°)
OKLaboklab(32.56% -0.0009 -0.0965)
OKLCHoklch(32.56% 0.097 269.5)
XYZxyz(3.9919, 3.2956, 12.7351)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F65 #655721
analogous
#215165 #212F65 #352165
triadic
#212F65 #65212F #2F6521
tetradic
#212F65 #652151 #655721 #216535
square
#212F65 #652151 #655721 #216535
split-complementary
#212F65 #653521 #516521
monochromatic
#080B17 #121A37 #212F65 #304493 #405AC1

Accessibility & contrast

On white

12.66
#212F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212F65
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F65#FFFFFF#000000##FFFFFF
##212F651.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212f65;
/* rgb */ color: rgb(33, 47, 101);
/* oklch */ color: oklch(32.6% 0.097 269.5);
Tailwind
colors: {
  custom: {
    50: '#646791',
    500: '#212f65',
    950: '#000000',
  },
}
SCSS
$custom: #212f65;
$custom-light: #646791;
$custom-dark: #000000;
JSON
{
  "hex": "#212f65",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 101
  },
  "hsl": {
    "h": 227.647,
    "s": 50.746,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3256,
    "c": 0.09653,
    "h": 269.5
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#212F65
secondary
#998849
accent
#BD4EDA
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #212F65

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

Preview Lab → · Contrast checker → · Palette generator →

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