#212289#212289

#212289 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.165 H 272.7°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#212289
RGBrgb(33, 34, 137)
HSLhsl(239, 61%, 33%)
HSVhsv(239, 76%, 54%)
CMYKcmyk(75.9%, 75.2%, 0%, 46.3%)
CIE-LABlab(21.11, 35.92, -56.83)
CIE-LCHlch(21.11, 67.23, 302.30°)
OKLaboklab(33.51% 0.0077 -0.1644)
OKLCHoklch(33.51% 0.165 272.7)
XYZxyz(5.7131, 3.2729, 23.9927)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212289 #898821
analogous
#215689 #212289 #542189
triadic
#212289 #892122 #228921
tetradic
#212289 #892156 #898821 #218954
square
#212289 #892156 #898821 #218954
split-complementary
#212289 #895421 #568921
monochromatic
#090A26 #151658 #212289 #2D2EBA #5051D5

Accessibility & contrast

On white

12.69
#212289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212289
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212289#FFFFFF#000000##FFFFFF
##2122891.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212289;
/* rgb */ color: rgb(33, 34, 137);
/* oklch */ color: oklch(33.5% 0.165 272.7);
Tailwind
colors: {
  custom: {
    50: '#6e5ead',
    500: '#212289',
    950: '#000000',
  },
}
SCSS
$custom: #212289;
$custom-light: #6e5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#212289",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 239.423,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33507,
    "c": 0.16462,
    "h": 272.7
  },
  "luminance": 0.03274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212289

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

Preview Lab → · Contrast checker → · Palette generator →

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