#212070#212070

#212070 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.133 H 275.6°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#212070
RGBrgb(33, 32, 112)
HSLhsl(241, 56%, 28%)
HSVhsv(241, 71%, 44%)
CMYKcmyk(70.5%, 71.4%, 0%, 56.1%)
CIE-LABlab(18.03, 28.19, -45.97)
CIE-LCHlch(18.03, 53.92, 301.51°)
OKLaboklab(30.52% 0.013 -0.1327)
OKLCHoklch(30.52% 0.133 275.6)
XYZxyz(4.0674, 2.5258, 15.5993)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212070 #6F7020
analogous
#204770 #212070 #492070
triadic
#212070 #702120 #207021
tetradic
#212070 #702047 #6F7020 #207049
square
#212070 #702047 #6F7020 #207049
split-complementary
#212070 #704920 #477020
monochromatic
#070718 #131240 #212070 #2F2EA0 #4342C9

Accessibility & contrast

On white

13.95
#212070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#212070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212070
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212070#FFFFFF#000000##FFFFFF
##2120701.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #212070;
/* rgb */ color: rgb(33, 32, 112);
/* oklch */ color: oklch(30.5% 0.133 275.6);
Tailwind
colors: {
  custom: {
    50: '#685c9a',
    500: '#212070',
    950: '#000000',
  },
}
SCSS
$custom: #212070;
$custom-light: #685c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#212070",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 112
  },
  "hsl": {
    "h": 240.75,
    "s": 55.556,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30519,
    "c": 0.13339,
    "h": 275.6
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#212070
secondary
#A3A448
accent
#DF49DD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212070

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

Preview Lab → · Contrast checker → · Palette generator →

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