#212F82#212F82

#212F82 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.140 H 270.1°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#212F82
RGBrgb(33, 47, 130)
HSLhsl(231, 60%, 32%)
HSVhsv(231, 75%, 51%)
CMYKcmyk(74.6%, 63.8%, 0%, 49%)
CIE-LABlab(23.56, 24.85, -48.40)
CIE-LCHlch(23.56, 54.41, 297.18°)
OKLaboklab(35.08% 0.0002 -0.1398)
OKLCHoklch(35.08% 0.14 270.1)
XYZxyz(5.6716, 3.9675, 21.5817)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F82 #827421
analogous
#216082 #212F82 #442182
triadic
#212F82 #82212F #2F8221
tetradic
#212F82 #822160 #827421 #218244
square
#212F82 #822160 #827421 #218244
split-complementary
#212F82 #824421 #608221
monochromatic
#080C20 #151D51 #212F82 #2D41B3 #4C5FD2

Accessibility & contrast

On white

11.71
#212F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#212F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F82
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F82#FFFFFF#000000##FFFFFF
##212F821.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212f82;
/* rgb */ color: rgb(33, 47, 130);
/* oklch */ color: oklch(35.1% 0.140 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b67a7',
    500: '#212f82',
    950: '#000000',
  },
}
SCSS
$custom: #212f82;
$custom-light: #6b67a7;
$custom-dark: #000000;
JSON
{
  "hex": "#212f82",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 231.34,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35082,
    "c": 0.13977,
    "h": 270.1
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#212F82
secondary
#B4A54A
accent
#CC45E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #212F82

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

Preview Lab → · Contrast checker → · Palette generator →

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