#22287A#22287A

#22287A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.137 H 273.0°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#22287A
RGBrgb(34, 40, 122)
HSLhsl(236, 56%, 31%)
HSVhsv(236, 72%, 48%)
CMYKcmyk(72.1%, 67.2%, 0%, 52.2%)
CIE-LABlab(21.07, 26.71, -47.42)
CIE-LCHlch(21.07, 54.42, 299.39°)
OKLaboklab(33.03% 0.0071 -0.1369)
OKLCHoklch(33.03% 0.137 273)
XYZxyz(4.9302, 3.2623, 18.7785)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22287A #7A7422
analogous
#22547A #22287A #48227A
triadic
#22287A #7A2228 #287A22
tetradic
#22287A #7A2254 #7A7422 #227A48
square
#22287A #7A2254 #7A7422 #227A48
split-complementary
#22287A #7A4822 #547A22
monochromatic
#07091A #15184A #22287A #2F38AA #4A53CD

Accessibility & contrast

On white

12.71
#22287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#22287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22287A
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22287A#FFFFFF#000000##FFFFFF
##22287A1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22287a;
/* rgb */ color: rgb(34, 40, 122);
/* oklch */ color: oklch(33.0% 0.137 273.0);
Tailwind
colors: {
  custom: {
    50: '#6a62a1',
    500: '#22287a',
    950: '#000000',
  },
}
SCSS
$custom: #22287a;
$custom-light: #6a62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#22287a",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 235.909,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33035,
    "c": 0.13712,
    "h": 273
  },
  "luminance": 0.03263
}

Semantic roles & 50–950 ramp

primary
#22287A
secondary
#ADA64B
accent
#D548E0
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #22287A

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

Preview Lab → · Contrast checker → · Palette generator →

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