#212F7E#212F7E

#212F7E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.134 H 270.1°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#212F7E
RGBrgb(33, 47, 126)
HSLhsl(231, 58%, 31%)
HSVhsv(231, 74%, 49%)
CMYKcmyk(73.8%, 62.7%, 0%, 50.6%)
CIE-LABlab(23.21, 23.30, -46.45)
CIE-LCHlch(23.21, 51.97, 296.64°)
OKLaboklab(34.71% 0.0003 -0.1341)
OKLCHoklch(34.71% 0.134 270.1)
XYZxyz(5.4083, 3.8622, 20.1951)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F7E #7E7021
analogous
#215D7E #212F7E #41217E
triadic
#212F7E #7E212F #2F7E21
tetradic
#212F7E #7E215D #7E7021 #217E41
square
#212F7E #7E215D #7E7021 #217E41
split-complementary
#212F7E #7E4121 #5D7E21
monochromatic
#080B1D #141D4E #212F7E #2E41AE #4A5ED0

Accessibility & contrast

On white

11.85
#212F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#212F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F7E
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F7E#FFFFFF#000000##FFFFFF
##212F7E1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212f7e;
/* rgb */ color: rgb(33, 47, 126);
/* oklch */ color: oklch(34.7% 0.134 270.1);
Tailwind
colors: {
  custom: {
    50: '#6a67a4',
    500: '#212f7e',
    950: '#000000',
  },
}
SCSS
$custom: #212f7e;
$custom-light: #6a67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#212f7e",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 230.968,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34711,
    "c": 0.13406,
    "h": 270.1
  },
  "luminance": 0.03863
}

Semantic roles & 50–950 ramp

primary
#212F7E
secondary
#B1A14A
accent
#CA46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #212F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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