#212780#212780

#212780 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.147 H 272.4°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#212780
RGBrgb(33, 39, 128)
HSLhsl(236, 59%, 32%)
HSVhsv(236, 74%, 50%)
CMYKcmyk(74.2%, 69.5%, 0%, 49.8%)
CIE-LABlab(21.33, 29.49, -50.80)
CIE-LCHlch(21.33, 58.74, 300.14°)
OKLaboklab(33.39% 0.0061 -0.1468)
OKLCHoklch(33.39% 0.147 272.4)
XYZxyz(5.2477, 3.3324, 20.7845)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212780 #807A21
analogous
#215780 #212780 #4B2180
triadic
#212780 #802127 #278021
tetradic
#212780 #802157 #807A21 #21804B
square
#212780 #802157 #807A21 #21804B
split-complementary
#212780 #804B21 #578021
monochromatic
#08091F #14184F #212780 #2E36B1 #4B53D1

Accessibility & contrast

On white

12.60
#212780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#212780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212780
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212780#FFFFFF#000000##FFFFFF
##2127801.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212780;
/* rgb */ color: rgb(33, 39, 128);
/* oklch */ color: oklch(33.4% 0.147 272.4);
Tailwind
colors: {
  custom: {
    50: '#6c61a6',
    500: '#212780',
    950: '#000000',
  },
}
SCSS
$custom: #212780;
$custom-light: #6c61a6;
$custom-dark: #000000;
JSON
{
  "hex": "#212780",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 128
  },
  "hsl": {
    "h": 236.211,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33387,
    "c": 0.14697,
    "h": 272.4
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#212780
secondary
#B3AC4A
accent
#D846E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #212780

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

Preview Lab → · Contrast checker → · Palette generator →

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