#2222AA#2222AA

#2222AA is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.3% C 0.205 H 270.7°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2222AA
RGBrgb(34, 34, 170)
HSLhsl(240, 67%, 40%)
HSVhsv(240, 80%, 67%)
CMYKcmyk(80%, 80%, 0%, 33.3%)
CIE-LABlab(24.91, 47.14, -70.80)
CIE-LCHlch(24.91, 85.06, 303.66°)
OKLaboklab(37.3% 0.0024 -0.205)
OKLCHoklch(37.3% 0.205 270.7)
XYZxyz(8.4850, 4.3855, 38.4217)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2222AA #AAAA22
analogous
#2266AA #2222AA #6622AA
triadic
#2222AA #AA2222 #22AA22
tetradic
#2222AA #AA2266 #AAAA22 #22AA66
square
#2222AA #AA2266 #AAAA22 #22AA66
split-complementary
#2222AA #AA6622 #66AA22
monochromatic
#0E0E44 #181877 #2222AA #3333D6 #6666E0

Accessibility & contrast

On white

11.19
#2222AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2222AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2222AA#FFFFFF#000000##FFFFFF
##2222AA1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AE
Deuteranopia (green-blind)
#0034A8
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2222aa;
/* rgb */ color: rgb(34, 34, 170);
/* oklch */ color: oklch(37.3% 0.205 270.7);
Tailwind
colors: {
  custom: {
    50: '#7760c5',
    500: '#2222aa',
    950: '#000000',
  },
}
SCSS
$custom: #2222aa;
$custom-light: #7760c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2222aa",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 240,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.37302,
    "c": 0.20501,
    "h": 270.7
  },
  "luminance": 0.04386
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2222AA

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

Preview Lab → · Contrast checker → · Palette generator →

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