#222782#222782

#222782 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.149 H 272.7°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#222782
RGBrgb(34, 39, 130)
HSLhsl(237, 59%, 32%)
HSVhsv(237, 74%, 51%)
CMYKcmyk(73.8%, 70%, 0%, 49%)
CIE-LABlab(21.59, 30.35, -51.63)
CIE-LCHlch(21.59, 59.89, 300.45°)
OKLaboklab(33.65% 0.007 -0.1493)
OKLCHoklch(33.65% 0.149 272.7)
XYZxyz(5.4131, 3.4023, 21.4862)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222782 #827D22
analogous
#225782 #222782 #4D2282
triadic
#222782 #822227 #278222
tetradic
#222782 #822257 #827D22 #22824D
square
#222782 #822257 #827D22 #22824D
split-complementary
#222782 #824D22 #578222
monochromatic
#090A21 #151851 #222782 #2F36B3 #4E55D1

Accessibility & contrast

On white

12.50
#222782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#222782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222782
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222782#FFFFFF#000000##FFFFFF
##2227821.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222782;
/* rgb */ color: rgb(34, 39, 130);
/* oklch */ color: oklch(33.7% 0.149 272.7);
Tailwind
colors: {
  custom: {
    50: '#6c61a7',
    500: '#222782',
    950: '#000000',
  },
}
SCSS
$custom: #222782;
$custom-light: #6c61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#222782",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 236.875,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33652,
    "c": 0.14943,
    "h": 272.7
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#222782
secondary
#B4AF4C
accent
#DA46E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #222782

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

Preview Lab → · Contrast checker → · Palette generator →

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