#222582#222582

#222582 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.152 H 273.1°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#222582
RGBrgb(34, 37, 130)
HSLhsl(238, 59%, 32%)
HSVhsv(238, 74%, 51%)
CMYKcmyk(73.8%, 71.5%, 0%, 49%)
CIE-LABlab(21.11, 31.65, -52.42)
CIE-LCHlch(21.11, 61.23, 301.12°)
OKLaboklab(33.31% 0.0083 -0.1516)
OKLCHoklch(33.31% 0.152 273.1)
XYZxyz(5.3492, 3.2744, 21.4649)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222582 #827F22
analogous
#225582 #222582 #4F2282
triadic
#222582 #822225 #258222
tetradic
#222582 #822255 #827F22 #22824F
square
#222582 #822255 #827F22 #22824F
split-complementary
#222582 #824F22 #558222
monochromatic
#090921 #151751 #222582 #2F33B3 #4E52D1

Accessibility & contrast

On white

12.69
#222582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#222582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222582
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222582#FFFFFF#000000##FFFFFF
##2225821.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #222582;
/* rgb */ color: rgb(34, 37, 130);
/* oklch */ color: oklch(33.3% 0.152 273.1);
Tailwind
colors: {
  custom: {
    50: '#6d60a7',
    500: '#222582',
    950: '#000000',
  },
}
SCSS
$custom: #222582;
$custom-light: #6d60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#222582",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 130
  },
  "hsl": {
    "h": 238.125,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33307,
    "c": 0.15179,
    "h": 273.1
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#222582
secondary
#B4B14C
accent
#DD46E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222582

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

Preview Lab → · Contrast checker → · Palette generator →

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