#212F8A#212F8A

#212F8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.151 H 270.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#212F8A
RGBrgb(33, 47, 138)
HSLhsl(232, 61%, 34%)
HSVhsv(232, 76%, 54%)
CMYKcmyk(76.1%, 65.9%, 0%, 45.9%)
CIE-LABlab(24.29, 27.92, -52.21)
CIE-LCHlch(24.29, 59.21, 298.14°)
OKLaboklab(35.84% -0.0001 -0.1509)
OKLCHoklch(35.84% 0.151 270)
XYZxyz(6.2296, 4.1907, 24.5204)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F8A #8A7C21
analogous
#21638A #212F8A #47218A
triadic
#212F8A #8A212F #2F8A21
tetradic
#212F8A #8A2163 #8A7C21 #218A47
square
#212F8A #8A2163 #8A7C21 #218A47
split-complementary
#212F8A #8A4721 #638A21
monochromatic
#090D27 #151E59 #212F8A #2D40BB #5062D5

Accessibility & contrast

On white

11.42
#212F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#212F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F8A
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F8A#FFFFFF#000000##FFFFFF
##212F8A1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #212f8a;
/* rgb */ color: rgb(33, 47, 138);
/* oklch */ color: oklch(35.8% 0.151 270.0);
Tailwind
colors: {
  custom: {
    50: '#6d67ad',
    500: '#212f8a',
    950: '#000000',
  },
}
SCSS
$custom: #212f8a;
$custom-light: #6d67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#212f8a",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 232,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35843,
    "c": 0.15094,
    "h": 270
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#212F8A
secondary
#B9AA4E
accent
#CF43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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