#212970#212970

#212970 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.122 H 272.6°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#212970
RGBrgb(33, 41, 112)
HSLhsl(234, 54%, 28%)
HSVhsv(234, 71%, 44%)
CMYKcmyk(70.5%, 63.4%, 0%, 56.1%)
CIE-LABlab(20.36, 22.06, -42.17)
CIE-LCHlch(20.36, 47.59, 297.61°)
OKLaboklab(32.21% 0.0056 -0.1216)
OKLCHoklch(32.21% 0.122 272.6)
XYZxyz(4.3438, 3.0787, 15.6914)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212970 #706821
analogous
#215070 #212970 #402170
triadic
#212970 #702129 #297021
tetradic
#212970 #702150 #706821 #217040
square
#212970 #702150 #706821 #217040
split-complementary
#212970 #704021 #507021
monochromatic
#070918 #131841 #212970 #2F3A9F #4451C8

Accessibility & contrast

On white

13.00
#212970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212970
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212970#FFFFFF#000000##FFFFFF
##2129701.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212970;
/* rgb */ color: rgb(33, 41, 112);
/* oklch */ color: oklch(32.2% 0.122 272.6);
Tailwind
colors: {
  custom: {
    50: '#67629a',
    500: '#212970',
    950: '#000000',
  },
}
SCSS
$custom: #212970;
$custom-light: #67629a;
$custom-dark: #000000;
JSON
{
  "hex": "#212970",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 112
  },
  "hsl": {
    "h": 233.924,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32215,
    "c": 0.1217,
    "h": 272.6
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#212970
secondary
#A49A49
accent
#CF4ADE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #212970

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

Preview Lab → · Contrast checker → · Palette generator →

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