#212370#212370

#212370 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.130 H 274.7°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#212370
RGBrgb(33, 35, 112)
HSLhsl(238, 54%, 28%)
HSVhsv(238, 71%, 44%)
CMYKcmyk(70.5%, 68.8%, 0%, 56.1%)
CIE-LABlab(18.78, 26.19, -44.75)
CIE-LCHlch(18.78, 51.85, 300.33°)
OKLaboklab(31.06% 0.0107 -0.1292)
OKLCHoklch(31.06% 0.13 274.7)
XYZxyz(4.1519, 2.6949, 15.6275)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212370 #706E21
analogous
#214A70 #212370 #462170
triadic
#212370 #702123 #237021
tetradic
#212370 #70214A #706E21 #217046
square
#212370 #70214A #706E21 #217046
split-complementary
#212370 #704621 #4A7021
monochromatic
#070718 #131441 #212370 #2F329F #4447C8

Accessibility & contrast

On white

13.65
#212370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#212370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212370
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212370#FFFFFF#000000##FFFFFF
##2123701.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212370;
/* rgb */ color: rgb(33, 35, 112);
/* oklch */ color: oklch(31.1% 0.130 274.7);
Tailwind
colors: {
  custom: {
    50: '#685e9a',
    500: '#212370',
    950: '#000000',
  },
}
SCSS
$custom: #212370;
$custom-light: #685e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#212370",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 112
  },
  "hsl": {
    "h": 238.481,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31057,
    "c": 0.12961,
    "h": 274.7
  },
  "luminance": 0.02695
}

Semantic roles & 50–950 ramp

primary
#212370
secondary
#A4A149
accent
#DA4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #212370

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

Preview Lab → · Contrast checker → · Palette generator →

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