#222882#222882

#222882 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.148 H 272.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#222882
RGBrgb(34, 40, 130)
HSLhsl(236, 59%, 32%)
HSVhsv(236, 74%, 51%)
CMYKcmyk(73.8%, 69.2%, 0%, 49%)
CIE-LABlab(21.83, 29.70, -51.23)
CIE-LCHlch(21.83, 59.22, 300.10°)
OKLaboklab(33.83% 0.0064 -0.1481)
OKLCHoklch(33.83% 0.148 272.5)
XYZxyz(5.4464, 3.4688, 21.4973)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222882 #827C22
analogous
#225882 #222882 #4C2282
triadic
#222882 #822228 #288222
tetradic
#222882 #822258 #827C22 #22824C
square
#222882 #822258 #827C22 #22824C
split-complementary
#222882 #824C22 #588222
monochromatic
#090A21 #151951 #222882 #2F37B3 #4E56D1

Accessibility & contrast

On white

12.40
#222882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#222882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222882
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222882#FFFFFF#000000##FFFFFF
##2228821.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222882;
/* rgb */ color: rgb(34, 40, 130);
/* oklch */ color: oklch(33.8% 0.148 272.5);
Tailwind
colors: {
  custom: {
    50: '#6c62a7',
    500: '#222882',
    950: '#000000',
  },
}
SCSS
$custom: #222882;
$custom-light: #6c62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#222882",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 236.25,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33828,
    "c": 0.14824,
    "h": 272.5
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#222882
secondary
#B4AD4C
accent
#D846E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222882

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

Preview Lab → · Contrast checker → · Palette generator →

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