#212495#212495

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

Color values

HEX#212495
RGBrgb(33, 36, 149)
HSLhsl(238, 64%, 36%)
HSVhsv(238, 78%, 58%)
CMYKcmyk(77.9%, 75.8%, 0%, 41.6%)
CIE-LABlab(22.84, 38.93, -61.41)
CIE-LCHlch(22.84, 72.71, 302.37°)
OKLaboklab(35.13% 0.0046 -0.1778)
OKLCHoklch(35.13% 0.178 271.5)
XYZxyz(6.6811, 3.7543, 28.8005)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212495 #959221
analogous
#215E95 #212495 #582195
triadic
#212495 #952124 #249521
tetradic
#212495 #95215E #959221 #219558
square
#212495 #95215E #959221 #219558
split-complementary
#212495 #955821 #5E9521
monochromatic
#0B0C31 #161863 #212495 #2C30C7 #575ADA

Accessibility & contrast

On white

11.99
#212495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212495
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212495#FFFFFF#000000##FFFFFF
##2124951.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212495;
/* rgb */ color: rgb(33, 36, 149);
/* oklch */ color: oklch(35.1% 0.178 271.5);
Tailwind
colors: {
  custom: {
    50: '#7160b5',
    500: '#212495',
    950: '#000000',
  },
}
SCSS
$custom: #212495;
$custom-light: #7160b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212495",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 238.448,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35132,
    "c": 0.17786,
    "h": 271.5
  },
  "luminance": 0.03755
}

Semantic roles & 50–950 ramp

primary
#212495
secondary
#BEBB54
accent
#E241E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212495

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

Preview Lab → · Contrast checker → · Palette generator →

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