#212982#212982

#212982 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.147 H 271.8°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#212982
RGBrgb(33, 41, 130)
HSLhsl(235, 60%, 32%)
HSVhsv(235, 75%, 51%)
CMYKcmyk(74.6%, 68.5%, 0%, 49%)
CIE-LABlab(22.02, 28.91, -50.93)
CIE-LCHlch(22.02, 58.56, 299.58°)
OKLaboklab(33.95% 0.0045 -0.1472)
OKLCHoklch(33.95% 0.147 271.8)
XYZxyz(5.4480, 3.5204, 21.5071)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212982 #827A21
analogous
#215982 #212982 #4A2182
triadic
#212982 #822129 #298221
tetradic
#212982 #822159 #827A21 #21824A
square
#212982 #822159 #827A21 #21824A
split-complementary
#212982 #824A21 #598221
monochromatic
#080A20 #151A51 #212982 #2D38B3 #4C57D2

Accessibility & contrast

On white

12.32
#212982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#212982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212982
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212982#FFFFFF#000000##FFFFFF
##2129821.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212982;
/* rgb */ color: rgb(33, 41, 130);
/* oklch */ color: oklch(33.9% 0.147 271.8);
Tailwind
colors: {
  custom: {
    50: '#6c63a7',
    500: '#212982',
    950: '#000000',
  },
}
SCSS
$custom: #212982;
$custom-light: #6c63a7;
$custom-dark: #000000;
JSON
{
  "hex": "#212982",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 130
  },
  "hsl": {
    "h": 235.052,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33948,
    "c": 0.1473,
    "h": 271.8
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#212982
secondary
#B4AC4A
accent
#D645E3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212982

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

Preview Lab → · Contrast checker → · Palette generator →

#212982 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva