#222982#222982

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

Color values

HEX#222982
RGBrgb(34, 41, 130)
HSLhsl(236, 59%, 32%)
HSVhsv(236, 74%, 51%)
CMYKcmyk(73.8%, 68.5%, 0%, 49%)
CIE-LABlab(22.08, 29.04, -50.83)
CIE-LCHlch(22.08, 58.54, 299.74°)
OKLaboklab(34.01% 0.0057 -0.1469)
OKLCHoklch(34.01% 0.147 272.2)
XYZxyz(5.4805, 3.5371, 21.5087)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222982 #827B22
analogous
#225982 #222982 #4B2282
triadic
#222982 #822229 #298222
tetradic
#222982 #822259 #827B22 #22824B
square
#222982 #822259 #827B22 #22824B
split-complementary
#222982 #824B22 #598222
monochromatic
#090A21 #151A51 #222982 #2F38B3 #4E57D1

Accessibility & contrast

On white

12.30
#222982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#222982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222982
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222982#FFFFFF#000000##FFFFFF
##2229821.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222982;
/* rgb */ color: rgb(34, 41, 130);
/* oklch */ color: oklch(34.0% 0.147 272.2);
Tailwind
colors: {
  custom: {
    50: '#6c63a7',
    500: '#222982',
    950: '#000000',
  },
}
SCSS
$custom: #222982;
$custom-light: #6c63a7;
$custom-dark: #000000;
JSON
{
  "hex": "#222982",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 130
  },
  "hsl": {
    "h": 235.625,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34008,
    "c": 0.14702,
    "h": 272.2
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

primary
#222982
secondary
#B4AC4C
accent
#D646E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222982

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

Preview Lab → · Contrast checker → · Palette generator →

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