#212F9D#212F9D

#212F9D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.176 H 269.5°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#212F9D
RGBrgb(33, 47, 157)
HSLhsl(233, 65%, 37%)
HSVhsv(233, 79%, 62%)
CMYKcmyk(79%, 70.1%, 0%, 38.4%)
CIE-LABlab(26.13, 35.02, -60.90)
CIE-LCHlch(26.13, 70.25, 299.90°)
OKLaboklab(37.74% -0.0016 -0.1763)
OKLCHoklch(37.74% 0.176 269.5)
XYZxyz(7.7274, 4.7898, 32.4090)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F9D #9D8F21
analogous
#216D9D #212F9D #51219D
triadic
#212F9D #9D212F #2F9D21
tetradic
#212F9D #9D216D #9D8F21 #219D51
square
#212F9D #9D216D #9D8F21 #219D51
split-complementary
#212F9D #9D5121 #6D9D21
monochromatic
#0C1138 #16206A #212F9D #2C3ED0 #5C6ADD

Accessibility & contrast

On white

10.72
#212F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#212F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F9D
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F9D#FFFFFF#000000##FFFFFF
##212F9D1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #212f9d;
/* rgb */ color: rgb(33, 47, 157);
/* oklch */ color: oklch(37.7% 0.176 269.5);
Tailwind
colors: {
  custom: {
    50: '#7268bb',
    500: '#212f9d',
    950: '#000000',
  },
}
SCSS
$custom: #212f9d;
$custom-light: #7268bb;
$custom-dark: #000000;
JSON
{
  "hex": "#212f9d",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 233.226,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3774,
    "c": 0.17636,
    "h": 269.5
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#212F9D
secondary
#C1B559
accent
#D540E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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