#222687#222687

#222687 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.157 H 272.6°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#222687
RGBrgb(34, 38, 135)
HSLhsl(238, 60%, 33%)
HSVhsv(238, 75%, 53%)
CMYKcmyk(74.8%, 71.9%, 0%, 47.1%)
CIE-LABlab(21.85, 32.83, -54.34)
CIE-LCHlch(21.85, 63.48, 301.14°)
OKLaboklab(34% 0.007 -0.1572)
OKLCHoklch(34% 0.157 272.6)
XYZxyz(5.7245, 3.4750, 23.2860)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222687 #878322
analogous
#225887 #222687 #502287
triadic
#222687 #872226 #268722
tetradic
#222687 #872258 #878322 #228750
square
#222687 #872258 #878322 #228750
split-complementary
#222687 #875022 #588722
monochromatic
#090A25 #161856 #222687 #2E34B8 #5056D3

Accessibility & contrast

On white

12.39
#222687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#222687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222687
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222687#FFFFFF#000000##FFFFFF
##2226871.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222687;
/* rgb */ color: rgb(34, 38, 135);
/* oklch */ color: oklch(34.0% 0.157 272.6);
Tailwind
colors: {
  custom: {
    50: '#6e61ab',
    500: '#222687',
    950: '#000000',
  },
}
SCSS
$custom: #222687;
$custom-light: #6e61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#222687",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 237.624,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33996,
    "c": 0.15733,
    "h": 272.6
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#222687
secondary
#B7B24E
accent
#DD45E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222687

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

Preview Lab → · Contrast checker → · Palette generator →

#222687 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva