#212470#212470

#212470 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.2% C 0.128 H 274.4°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#212470
RGBrgb(33, 36, 112)
HSLhsl(238, 54%, 28%)
HSVhsv(238, 71%, 44%)
CMYKcmyk(70.5%, 67.9%, 0%, 56.1%)
CIE-LABlab(19.03, 25.51, -44.33)
CIE-LCHlch(19.03, 51.15, 299.91°)
OKLaboklab(31.24% 0.0098 -0.1279)
OKLCHoklch(31.24% 0.128 274.4)
XYZxyz(4.1817, 2.7546, 15.6374)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212470 #706D21
analogous
#214B70 #212470 #452170
triadic
#212470 #702124 #247021
tetradic
#212470 #70214B #706D21 #217045
square
#212470 #70214B #706D21 #217045
split-complementary
#212470 #704521 #4B7021
monochromatic
#070818 #131541 #212470 #2F339F #4449C8

Accessibility & contrast

On white

13.54
#212470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#212470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212470
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212470#FFFFFF#000000##FFFFFF
##2124701.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212470;
/* rgb */ color: rgb(33, 36, 112);
/* oklch */ color: oklch(31.2% 0.128 274.4);
Tailwind
colors: {
  custom: {
    50: '#685f9a',
    500: '#212470',
    950: '#000000',
  },
}
SCSS
$custom: #212470;
$custom-light: #685f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#212470",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 112
  },
  "hsl": {
    "h": 237.722,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31243,
    "c": 0.12833,
    "h": 274.4
  },
  "luminance": 0.02755
}

Semantic roles & 50–950 ramp

primary
#212470
secondary
#A4A049
accent
#D84ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212470

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

Preview Lab → · Contrast checker → · Palette generator →

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