#212180#212180

#212180 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.154 H 273.7°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#212180
RGBrgb(33, 33, 128)
HSLhsl(240, 59%, 32%)
HSVhsv(240, 74%, 50%)
CMYKcmyk(74.2%, 74.2%, 0%, 49.8%)
CIE-LABlab(19.92, 33.34, -53.11)
CIE-LCHlch(19.92, 62.71, 302.12°)
OKLaboklab(32.37% 0.0098 -0.1536)
OKLCHoklch(32.37% 0.154 273.7)
XYZxyz(5.0660, 2.9691, 20.7240)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212180 #808021
analogous
#215180 #212180 #512180
triadic
#212180 #802121 #218021
tetradic
#212180 #802151 #808021 #218051
square
#212180 #802151 #808021 #218051
split-complementary
#212180 #805121 #518021
monochromatic
#08081F #14144F #212180 #2E2EB1 #4B4BD1

Accessibility & contrast

On white

13.17
#212180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#212180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212180
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212180#FFFFFF#000000##FFFFFF
##2121801.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212180;
/* rgb */ color: rgb(33, 33, 128);
/* oklch */ color: oklch(32.4% 0.154 273.7);
Tailwind
colors: {
  custom: {
    50: '#6c5da6',
    500: '#212180',
    950: '#000000',
  },
}
SCSS
$custom: #212180;
$custom-light: #6c5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#212180",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 240,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32372,
    "c": 0.15393,
    "h": 273.7
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#212180
secondary
#B3B34A
accent
#E246E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #212180

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

Preview Lab → · Contrast checker → · Palette generator →

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