#2222AD#2222AD

#2222AD is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.209 H 270.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#2222AD
RGBrgb(34, 34, 173)
HSLhsl(240, 67%, 41%)
HSVhsv(240, 80%, 68%)
CMYKcmyk(80.3%, 80.3%, 0%, 32.2%)
CIE-LABlab(25.26, 48.11, -72.02)
CIE-LCHlch(25.26, 86.61, 303.74°)
OKLaboklab(37.65% 0.0018 -0.2085)
OKLCHoklch(37.65% 0.209 270.5)
XYZxyz(8.7720, 4.5003, 39.9334)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2222AD #ADAD22
analogous
#2267AD #2222AD #6722AD
triadic
#2222AD #AD2222 #22AD22
tetradic
#2222AD #AD2267 #ADAD22 #22AD67
square
#2222AD #AD2267 #ADAD22 #22AD67
split-complementary
#2222AD #AD6722 #67AD22
monochromatic
#0E0E47 #18187A #2222AD #3535D7 #6868E1

Accessibility & contrast

On white

11.05
#2222AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2222AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2222AD
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2222AD#FFFFFF#000000##FFFFFF
##2222AD1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B1
Deuteranopia (green-blind)
#0035AB
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2222ad;
/* rgb */ color: rgb(34, 34, 173);
/* oklch */ color: oklch(37.7% 0.209 270.5);
Tailwind
colors: {
  custom: {
    50: '#7860c7',
    500: '#2222ad',
    950: '#000000',
  },
}
SCSS
$custom: #2222ad;
$custom-light: #7860c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2222ad",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 173
  },
  "hsl": {
    "h": 240,
    "s": 67.15,
    "l": 40.588
  },
  "oklch": {
    "l": 0.37652,
    "c": 0.20854,
    "h": 270.5
  },
  "luminance": 0.04501
}

Semantic roles & 50–950 ramp

primary
#2222AD
secondary
#C7C764
accent
#EA3EEA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2222AD

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

Preview Lab → · Contrast checker → · Palette generator →

#2222AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva