#212980#212980

#212980 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.145 H 271.9°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#212980
RGBrgb(33, 41, 128)
HSLhsl(235, 59%, 32%)
HSVhsv(235, 74%, 50%)
CMYKcmyk(74.2%, 68%, 0%, 49.8%)
CIE-LABlab(21.83, 28.16, -49.98)
CIE-LCHlch(21.83, 57.37, 299.40°)
OKLaboklab(33.75% 0.0047 -0.1445)
OKLCHoklch(33.75% 0.145 271.9)
XYZxyz(5.3151, 3.4672, 20.8070)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212980 #807821
analogous
#215980 #212980 #492180
triadic
#212980 #802129 #298021
tetradic
#212980 #802159 #807821 #218049
square
#212980 #802159 #807821 #218049
split-complementary
#212980 #804921 #598021
monochromatic
#080A1F #14194F #212980 #2E39B1 #4B56D1

Accessibility & contrast

On white

12.40
#212980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#212980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212980
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212980#FFFFFF#000000##FFFFFF
##2129801.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #212980;
/* rgb */ color: rgb(33, 41, 128);
/* oklch */ color: oklch(33.7% 0.145 271.9);
Tailwind
colors: {
  custom: {
    50: '#6b63a6',
    500: '#212980',
    950: '#000000',
  },
}
SCSS
$custom: #212980;
$custom-light: #6b63a6;
$custom-dark: #000000;
JSON
{
  "hex": "#212980",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 128
  },
  "hsl": {
    "h": 234.947,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33749,
    "c": 0.14454,
    "h": 271.9
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#212980
secondary
#B3AA4A
accent
#D546E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #212980

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

Preview Lab → · Contrast checker → · Palette generator →

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