#212288#212288

#212288 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.163 H 272.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#212288
RGBrgb(33, 34, 136)
HSLhsl(239, 61%, 33%)
HSVhsv(239, 76%, 53%)
CMYKcmyk(75.7%, 75%, 0%, 46.7%)
CIE-LABlab(21.00, 35.57, -56.38)
CIE-LCHlch(21.00, 66.66, 302.25°)
OKLaboklab(33.4% 0.0079 -0.1631)
OKLCHoklch(33.4% 0.163 272.8)
XYZxyz(5.6417, 3.2444, 23.6167)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212288 #888721
analogous
#215688 #212288 #532188
triadic
#212288 #882122 #228821
tetradic
#212288 #882156 #888721 #218853
square
#212288 #882156 #888721 #218853
split-complementary
#212288 #885321 #568821
monochromatic
#090925 #151657 #212288 #2D2EB9 #4F50D4

Accessibility & contrast

On white

12.73
#212288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#212288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212288
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212288#FFFFFF#000000##FFFFFF
##2122881.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212288;
/* rgb */ color: rgb(33, 34, 136);
/* oklch */ color: oklch(33.4% 0.163 272.8);
Tailwind
colors: {
  custom: {
    50: '#6e5eac',
    500: '#212288',
    950: '#000000',
  },
}
SCSS
$custom: #212288;
$custom-light: #6e5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#212288",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 239.417,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33398,
    "c": 0.16332,
    "h": 272.8
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#212288
secondary
#B8B74D
accent
#E344E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212288

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

Preview Lab → · Contrast checker → · Palette generator →

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