#22286C#22286C

#22286C is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.7% C 0.117 H 273.8°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#22286C
RGBrgb(34, 40, 108)
HSLhsl(235, 52%, 28%)
HSVhsv(235, 69%, 42%)
CMYKcmyk(68.5%, 63%, 0%, 57.6%)
CIE-LABlab(19.80, 21.38, -40.49)
CIE-LCHlch(19.80, 45.79, 297.84°)
OKLaboklab(31.71% 0.0078 -0.1166)
OKLCHoklch(31.71% 0.117 273.8)
XYZxyz(4.1244, 2.9400, 14.5346)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22286C #6C6622
analogous
#224D6C #22286C #41226C
triadic
#22286C #6C2228 #286C22
tetradic
#22286C #6C224D #6C6622 #226C41
square
#22286C #6C224D #6C6622 #226C41
split-complementary
#22286C #6C4122 #4D6C22
monochromatic
#070917 #13173D #22286C #31399B #444FC4

Accessibility & contrast

On white

13.22
#22286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#22286C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22286C
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22286C#FFFFFF#000000##FFFFFF
##22286C1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#002D6B
Tritanopia (blue-blind)
#003945
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22286c;
/* rgb */ color: rgb(34, 40, 108);
/* oklch */ color: oklch(31.7% 0.117 273.8);
Tailwind
colors: {
  custom: {
    50: '#676197',
    500: '#22286c',
    950: '#000000',
  },
}
SCSS
$custom: #22286c;
$custom-light: #676197;
$custom-dark: #000000;
JSON
{
  "hex": "#22286c",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 235.135,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31714,
    "c": 0.11685,
    "h": 273.8
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#22286C
secondary
#A0994A
accent
#D04CDC
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #22286C

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

Preview Lab → · Contrast checker → · Palette generator →

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