#212280#212280

#212280 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.153 H 273.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#212280
RGBrgb(33, 34, 128)
HSLhsl(239, 59%, 32%)
HSVhsv(239, 74%, 50%)
CMYKcmyk(74.2%, 73.4%, 0%, 49.8%)
CIE-LABlab(20.15, 32.72, -52.74)
CIE-LCHlch(20.15, 62.07, 301.81°)
OKLaboklab(32.53% 0.0092 -0.1525)
OKLCHoklch(32.53% 0.153 273.5)
XYZxyz(5.0942, 3.0254, 20.7334)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212280 #807F21
analogous
#215280 #212280 #502180
triadic
#212280 #802122 #228021
tetradic
#212280 #802152 #807F21 #218050
square
#212280 #802152 #807F21 #218050
split-complementary
#212280 #805021 #528021
monochromatic
#08081F #14154F #212280 #2E2FB1 #4B4CD1

Accessibility & contrast

On white

13.08
#212280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212280
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212280#FFFFFF#000000##FFFFFF
##2122801.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212280;
/* rgb */ color: rgb(33, 34, 128);
/* oklch */ color: oklch(32.5% 0.153 273.5);
Tailwind
colors: {
  custom: {
    50: '#6c5ea6',
    500: '#212280',
    950: '#000000',
  },
}
SCSS
$custom: #212280;
$custom-light: #6c5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#212280",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 239.368,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32534,
    "c": 0.15282,
    "h": 273.5
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#212280
secondary
#B3B24A
accent
#E146E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #212280

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

Preview Lab → · Contrast checker → · Palette generator →

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