#212268#212268

#212268 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.1% C 0.119 H 275.9°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#212268
RGBrgb(33, 34, 104)
HSLhsl(239, 52%, 27%)
HSVhsv(239, 68%, 41%)
CMYKcmyk(68.3%, 67.3%, 0%, 59.2%)
CIE-LABlab(17.77, 23.87, -41.20)
CIE-LCHlch(17.77, 47.61, 300.08°)
OKLaboklab(30.09% 0.0122 -0.1188)
OKLCHoklch(30.09% 0.119 275.9)
XYZxyz(3.6971, 2.4666, 13.3753)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212268 #686721
analogous
#214668 #212268 #442168
triadic
#212268 #682122 #226821
tetradic
#212268 #682146 #686721 #216844
square
#212268 #682146 #686721 #216844
split-complementary
#212268 #684421 #466821
monochromatic
#070817 #12133A #212268 #303196 #4143C3

Accessibility & contrast

On white

14.06
#212268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#212268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212268
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212268#FFFFFF#000000##FFFFFF
##2122681.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#003441
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #212268;
/* rgb */ color: rgb(33, 34, 104);
/* oklch */ color: oklch(30.1% 0.119 275.9);
Tailwind
colors: {
  custom: {
    50: '#665d94',
    500: '#212268',
    950: '#000000',
  },
}
SCSS
$custom: #212268;
$custom-light: #665d94;
$custom-dark: #000000;
JSON
{
  "hex": "#212268",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 104
  },
  "hsl": {
    "h": 239.155,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30086,
    "c": 0.1194,
    "h": 275.9
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#212268
secondary
#9C9B49
accent
#D94DDB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #212268

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

Preview Lab → · Contrast checker → · Palette generator →

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