#212593#212593

#212593 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.174 H 271.5°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#212593
RGBrgb(33, 37, 147)
HSLhsl(238, 63%, 35%)
HSVhsv(238, 78%, 58%)
CMYKcmyk(77.6%, 74.8%, 0%, 42.4%)
CIE-LABlab(22.84, 37.64, -60.19)
CIE-LCHlch(22.84, 70.99, 302.02°)
OKLaboklab(35.06% 0.0045 -0.1742)
OKLCHoklch(35.06% 0.174 271.5)
XYZxyz(6.5534, 3.7523, 27.9770)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212593 #938F21
analogous
#215E93 #212593 #562193
triadic
#212593 #932125 #259321
tetradic
#212593 #93215E #938F21 #219356
square
#212593 #93215E #938F21 #219356
split-complementary
#212593 #935621 #5E9321
monochromatic
#0B0C2F #161861 #212593 #2C32C5 #555AD9

Accessibility & contrast

On white

12.00
#212593 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#212593 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212593
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212593#FFFFFF#000000##FFFFFF
##2125931.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003191
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212593;
/* rgb */ color: rgb(33, 37, 147);
/* oklch */ color: oklch(35.1% 0.174 271.5);
Tailwind
colors: {
  custom: {
    50: '#7161b4',
    500: '#212593',
    950: '#000000',
  },
}
SCSS
$custom: #212593;
$custom-light: #7161b4;
$custom-dark: #000000;
JSON
{
  "hex": "#212593",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 147
  },
  "hsl": {
    "h": 237.895,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35062,
    "c": 0.17431,
    "h": 271.5
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#212593
secondary
#BDB953
accent
#E141E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212593

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

Preview Lab → · Contrast checker → · Palette generator →

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