#212395#212395

#212395 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.179 H 271.6°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#212395
RGBrgb(33, 35, 149)
HSLhsl(239, 64%, 36%)
HSVhsv(239, 78%, 58%)
CMYKcmyk(77.9%, 76.5%, 0%, 41.6%)
CIE-LABlab(22.64, 39.51, -61.76)
CIE-LCHlch(22.64, 73.32, 302.61°)
OKLaboklab(34.99% 0.0051 -0.1788)
OKLCHoklch(34.99% 0.179 271.6)
XYZxyz(6.6512, 3.6946, 28.7905)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212395 #959321
analogous
#215D95 #212395 #592195
triadic
#212395 #952123 #239521
tetradic
#212395 #95215D #959321 #219559
square
#212395 #95215D #959321 #219559
split-complementary
#212395 #955921 #5D9521
monochromatic
#0B0B31 #161763 #212395 #2C2FC7 #5759DA

Accessibility & contrast

On white

12.08
#212395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212395
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212395#FFFFFF#000000##FFFFFF
##2123951.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212395;
/* rgb */ color: rgb(33, 35, 149);
/* oklch */ color: oklch(35.0% 0.179 271.6);
Tailwind
colors: {
  custom: {
    50: '#715fb5',
    500: '#212395',
    950: '#000000',
  },
}
SCSS
$custom: #212395;
$custom-light: #715fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#212395",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 149
  },
  "hsl": {
    "h": 238.966,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34985,
    "c": 0.17886,
    "h": 271.6
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#212395
secondary
#BEBC54
accent
#E441E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212395

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

Preview Lab → · Contrast checker → · Palette generator →

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