#22287C#22287C

#22287C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.140 H 272.8°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#22287C
RGBrgb(34, 40, 124)
HSLhsl(236, 57%, 31%)
HSVhsv(236, 73%, 49%)
CMYKcmyk(72.6%, 67.7%, 0%, 51.4%)
CIE-LABlab(21.25, 27.46, -48.38)
CIE-LCHlch(21.25, 55.63, 299.58°)
OKLaboklab(33.23% 0.0069 -0.1398)
OKLCHoklch(33.23% 0.14 272.8)
XYZxyz(5.0553, 3.3124, 19.4378)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22287C #7C7622
analogous
#22557C #22287C #49227C
triadic
#22287C #7C2228 #287C22
tetradic
#22287C #7C2255 #7C7622 #227C49
square
#22287C #7C2255 #7C7622 #227C49
split-complementary
#22287C #7C4922 #557C22
monochromatic
#08091C #15194C #22287C #2F37AC #4B54CE

Accessibility & contrast

On white

12.63
#22287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#22287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22287C
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22287C#FFFFFF#000000##FFFFFF
##22287C1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22287c;
/* rgb */ color: rgb(34, 40, 124);
/* oklch */ color: oklch(33.2% 0.140 272.8);
Tailwind
colors: {
  custom: {
    50: '#6b62a3',
    500: '#22287c',
    950: '#000000',
  },
}
SCSS
$custom: #22287c;
$custom-light: #6b62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22287c",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 236,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33231,
    "c": 0.13993,
    "h": 272.8
  },
  "luminance": 0.03313
}

Semantic roles & 50–950 ramp

primary
#22287C
secondary
#AFA84B
accent
#D648E0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #22287C

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

Preview Lab → · Contrast checker → · Palette generator →

#22287C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva