#212582#212582

#212582 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.152 H 272.7°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#212582
RGBrgb(33, 37, 130)
HSLhsl(238, 60%, 32%)
HSVhsv(238, 75%, 51%)
CMYKcmyk(74.6%, 71.5%, 0%, 49%)
CIE-LABlab(21.05, 31.54, -52.52)
CIE-LCHlch(21.05, 61.26, 300.98°)
OKLaboklab(33.25% 0.0071 -0.1519)
OKLCHoklch(33.25% 0.152 272.7)
XYZxyz(5.3167, 3.2576, 21.4634)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212582 #827E21
analogous
#215682 #212582 #4E2182
triadic
#212582 #822125 #258221
tetradic
#212582 #822156 #827E21 #21824E
square
#212582 #822156 #827E21 #21824E
split-complementary
#212582 #824E21 #568221
monochromatic
#080920 #151751 #212582 #2D33B3 #4C51D2

Accessibility & contrast

On white

12.71
#212582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#212582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212582
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212582#FFFFFF#000000##FFFFFF
##2125821.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212582;
/* rgb */ color: rgb(33, 37, 130);
/* oklch */ color: oklch(33.2% 0.152 272.7);
Tailwind
colors: {
  custom: {
    50: '#6c60a7',
    500: '#212582',
    950: '#000000',
  },
}
SCSS
$custom: #212582;
$custom-light: #6c60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#212582",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 130
  },
  "hsl": {
    "h": 237.526,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33245,
    "c": 0.15207,
    "h": 272.7
  },
  "luminance": 0.03258
}

Semantic roles & 50–950 ramp

primary
#212582
secondary
#B4B04A
accent
#DC45E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #212582

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

Preview Lab → · Contrast checker → · Palette generator →

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