#2222AC#2222AC

#2222AC is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.5% C 0.207 H 270.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#2222AC
RGBrgb(34, 34, 172)
HSLhsl(240, 67%, 40%)
HSVhsv(240, 80%, 67%)
CMYKcmyk(80.2%, 80.2%, 0%, 32.5%)
CIE-LABlab(25.14, 47.79, -71.62)
CIE-LCHlch(25.14, 86.09, 303.71°)
OKLaboklab(37.54% 0.002 -0.2074)
OKLCHoklch(37.54% 0.207 270.6)
XYZxyz(8.6756, 4.4617, 39.4257)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2222AC #ACAC22
analogous
#2267AC #2222AC #6722AC
triadic
#2222AC #AC2222 #22AC22
tetradic
#2222AC #AC2267 #ACAC22 #22AC67
square
#2222AC #AC2267 #ACAC22 #22AC67
split-complementary
#2222AC #AC6722 #67AC22
monochromatic
#0E0E46 #181879 #2222AC #3434D7 #6767E1

Accessibility & contrast

On white

11.10
#2222AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2222AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2222AC
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2222AC#FFFFFF#000000##FFFFFF
##2222AC1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B0
Deuteranopia (green-blind)
#0034AA
Tritanopia (blue-blind)
#004D67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2222ac;
/* rgb */ color: rgb(34, 34, 172);
/* oklch */ color: oklch(37.5% 0.207 270.6);
Tailwind
colors: {
  custom: {
    50: '#7860c6',
    500: '#2222ac',
    950: '#000000',
  },
}
SCSS
$custom: #2222ac;
$custom-light: #7860c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2222ac",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 240,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.37535,
    "c": 0.20737,
    "h": 270.6
  },
  "luminance": 0.04463
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2222AC

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

Preview Lab → · Contrast checker → · Palette generator →

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