#22286B#22286B

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

Color values

HEX#22286B
RGBrgb(34, 40, 107)
HSLhsl(235, 52%, 28%)
HSVhsv(235, 68%, 42%)
CMYKcmyk(68.2%, 62.6%, 0%, 58%)
CIE-LABlab(19.72, 21.00, -39.98)
CIE-LCHlch(19.72, 45.16, 297.71°)
OKLaboklab(31.62% 0.0078 -0.1151)
OKLCHoklch(31.62% 0.115 273.9)
XYZxyz(4.0714, 2.9188, 14.2559)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22286B #6B6522
analogous
#224D6B #22286B #40226B
triadic
#22286B #6B2228 #286B22
tetradic
#22286B #6B224D #6B6522 #226B40
square
#22286B #6B224D #6B6522 #226B40
split-complementary
#22286B #6B4022 #4D6B22
monochromatic
#070917 #13173D #22286B #313999 #444EC4

Accessibility & contrast

On white

13.26
#22286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22286B
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22286B#FFFFFF#000000##FFFFFF
##22286B1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22286b;
/* rgb */ color: rgb(34, 40, 107);
/* oklch */ color: oklch(31.6% 0.115 273.9);
Tailwind
colors: {
  custom: {
    50: '#676196',
    500: '#22286b',
    950: '#000000',
  },
}
SCSS
$custom: #22286b;
$custom-light: #676196;
$custom-dark: #000000;
JSON
{
  "hex": "#22286b",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 235.068,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31624,
    "c": 0.11535,
    "h": 273.9
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22286B

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

Preview Lab → · Contrast checker → · Palette generator →

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