#212880#212880

#212880 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.146 H 272.1°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#212880
RGBrgb(33, 40, 128)
HSLhsl(236, 59%, 32%)
HSVhsv(236, 74%, 50%)
CMYKcmyk(74.2%, 68.8%, 0%, 49.8%)
CIE-LABlab(21.58, 28.83, -50.39)
CIE-LCHlch(21.58, 58.06, 299.77°)
OKLaboklab(33.57% 0.0054 -0.1457)
OKLCHoklch(33.57% 0.146 272.1)
XYZxyz(5.2810, 3.3989, 20.7956)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212880 #807921
analogous
#215880 #212880 #4A2180
triadic
#212880 #802128 #288021
tetradic
#212880 #802158 #807921 #21804A
square
#212880 #802158 #807921 #21804A
split-complementary
#212880 #804A21 #588021
monochromatic
#080A1F #14194F #212880 #2E37B1 #4B55D1

Accessibility & contrast

On white

12.50
#212880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#212880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212880
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212880#FFFFFF#000000##FFFFFF
##2128801.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212880;
/* rgb */ color: rgb(33, 40, 128);
/* oklch */ color: oklch(33.6% 0.146 272.1);
Tailwind
colors: {
  custom: {
    50: '#6b62a6',
    500: '#212880',
    950: '#000000',
  },
}
SCSS
$custom: #212880;
$custom-light: #6b62a6;
$custom-dark: #000000;
JSON
{
  "hex": "#212880",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 128
  },
  "hsl": {
    "h": 235.579,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33567,
    "c": 0.14576,
    "h": 272.1
  },
  "luminance": 0.03399
}

Semantic roles & 50–950 ramp

primary
#212880
secondary
#B3AB4A
accent
#D746E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #212880

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

Preview Lab → · Contrast checker → · Palette generator →

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