#212282#212282

#212282 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.155 H 273.3°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#212282
RGBrgb(33, 34, 130)
HSLhsl(239, 60%, 32%)
HSVhsv(239, 75%, 51%)
CMYKcmyk(74.6%, 73.8%, 0%, 49%)
CIE-LABlab(20.36, 33.44, -53.66)
CIE-LCHlch(20.36, 63.22, 301.93°)
OKLaboklab(32.75% 0.0089 -0.1552)
OKLCHoklch(32.75% 0.155 273.3)
XYZxyz(5.2271, 3.0786, 21.4335)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212282 #828121
analogous
#215382 #212282 #502182
triadic
#212282 #822122 #228221
tetradic
#212282 #822153 #828121 #218250
square
#212282 #822153 #828121 #218250
split-complementary
#212282 #825021 #538221
monochromatic
#080820 #151551 #212282 #2D2FB3 #4C4DD2

Accessibility & contrast

On white

13.00
#212282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212282
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212282#FFFFFF#000000##FFFFFF
##2122821.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212282;
/* rgb */ color: rgb(33, 34, 130);
/* oklch */ color: oklch(32.7% 0.155 273.3);
Tailwind
colors: {
  custom: {
    50: '#6d5ea7',
    500: '#212282',
    950: '#000000',
  },
}
SCSS
$custom: #212282;
$custom-light: #6d5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#212282",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 239.381,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32748,
    "c": 0.15546,
    "h": 273.3
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#212282
secondary
#B4B34A
accent
#E145E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212282

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

Preview Lab → · Contrast checker → · Palette generator →

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