#22286A#22286A

#22286A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.114 H 273.9°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#22286A
RGBrgb(34, 40, 106)
HSLhsl(235, 51%, 27%)
HSVhsv(235, 68%, 42%)
CMYKcmyk(67.9%, 62.3%, 0%, 58.4%)
CIE-LABlab(19.63, 20.62, -39.47)
CIE-LCHlch(19.63, 44.53, 297.58°)
OKLaboklab(31.53% 0.0078 -0.1136)
OKLCHoklch(31.53% 0.114 273.9)
XYZxyz(4.0191, 2.8979, 13.9804)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22286A #6A6422
analogous
#224C6A #22286A #40226A
triadic
#22286A #6A2228 #286A22
tetradic
#22286A #6A224C #6A6422 #226A40
square
#22286A #6A224C #6A6422 #226A40
split-complementary
#22286A #6A4022 #4C6A22
monochromatic
#070917 #13173C #22286A #313998 #444EC3

Accessibility & contrast

On white

13.29
#22286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#22286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22286A
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22286A#FFFFFF#000000##FFFFFF
##22286A1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#003844
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22286a;
/* rgb */ color: rgb(34, 40, 106);
/* oklch */ color: oklch(31.5% 0.114 273.9);
Tailwind
colors: {
  custom: {
    50: '#676195',
    500: '#22286a',
    950: '#000000',
  },
}
SCSS
$custom: #22286a;
$custom-light: #676195;
$custom-dark: #000000;
JSON
{
  "hex": "#22286a",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 235,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31533,
    "c": 0.11386,
    "h": 273.9
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

primary
#22286A
secondary
#9E974A
accent
#CF4DDB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #22286A

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

Preview Lab → · Contrast checker → · Palette generator →

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