#222282#222282

#222282 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.155 H 273.7°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#222282
RGBrgb(34, 34, 130)
HSLhsl(240, 59%, 32%)
HSVhsv(240, 74%, 51%)
CMYKcmyk(73.8%, 73.8%, 0%, 49%)
CIE-LABlab(20.42, 33.55, -53.55)
CIE-LCHlch(20.42, 63.19, 302.06°)
OKLaboklab(32.81% 0.0102 -0.1549)
OKLCHoklch(32.81% 0.155 273.7)
XYZxyz(5.2596, 3.0953, 21.4350)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222282 #828222
analogous
#225282 #222282 #522282
triadic
#222282 #822222 #228222
tetradic
#222282 #822252 #828222 #228252
square
#222282 #822252 #828222 #228252
split-complementary
#222282 #825222 #528222
monochromatic
#090921 #151551 #222282 #2F2FB3 #4E4ED1

Accessibility & contrast

On white

12.97
#222282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#222282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222282
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222282#FFFFFF#000000##FFFFFF
##2222821.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #222282;
/* rgb */ color: rgb(34, 34, 130);
/* oklch */ color: oklch(32.8% 0.155 273.7);
Tailwind
colors: {
  custom: {
    50: '#6d5ea7',
    500: '#222282',
    950: '#000000',
  },
}
SCSS
$custom: #222282;
$custom-light: #6d5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#222282",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 240,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32812,
    "c": 0.1552,
    "h": 273.7
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#222282
secondary
#B4B44C
accent
#E246E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #222282

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

Preview Lab → · Contrast checker → · Palette generator →

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