#22287F#22287F

#22287F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.144 H 272.6°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#22287F
RGBrgb(34, 40, 127)
HSLhsl(236, 58%, 32%)
HSVhsv(236, 73%, 50%)
CMYKcmyk(73.2%, 68.5%, 0%, 50.2%)
CIE-LABlab(21.54, 28.58, -49.81)
CIE-LCHlch(21.54, 57.43, 299.85°)
OKLaboklab(33.53% 0.0067 -0.1439)
OKLCHoklch(33.53% 0.144 272.6)
XYZxyz(5.2480, 3.3895, 20.4522)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22287F #7F7922
analogous
#22577F #22287F #4B227F
triadic
#22287F #7F2228 #287F22
tetradic
#22287F #7F2257 #7F7922 #227F4B
square
#22287F #7F2257 #7F7922 #227F4B
split-complementary
#22287F #7F4B22 #577F22
monochromatic
#080A1E #15194F #22287F #2F37AF #4C55CF

Accessibility & contrast

On white

12.51
#22287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#22287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22287F
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22287F#FFFFFF#000000##FFFFFF
##22287F1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22287f;
/* rgb */ color: rgb(34, 40, 127);
/* oklch */ color: oklch(33.5% 0.144 272.6);
Tailwind
colors: {
  custom: {
    50: '#6c62a5',
    500: '#22287f',
    950: '#000000',
  },
}
SCSS
$custom: #22287f;
$custom-light: #6c62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22287f",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 236.129,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33528,
    "c": 0.1441,
    "h": 272.6
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#22287F
secondary
#B2AB4B
accent
#D747E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22287F

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

Preview Lab → · Contrast checker → · Palette generator →

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