#2221AA#2221AA

#2221AA is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.206 H 270.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2221AA
RGBrgb(34, 33, 170)
HSLhsl(240, 67%, 40%)
HSVhsv(240, 81%, 67%)
CMYKcmyk(80%, 80.6%, 0%, 33.3%)
CIE-LABlab(24.73, 47.65, -71.09)
CIE-LCHlch(24.73, 85.59, 303.83°)
OKLaboklab(37.18% 0.0027 -0.2058)
OKLCHoklch(37.18% 0.206 270.7)
XYZxyz(8.4568, 4.3291, 38.4123)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2221AA #A9AA21
analogous
#2165AA #2221AA #6721AA
triadic
#2221AA #AA2221 #21AA22
tetradic
#2221AA #AA2165 #A9AA21 #21AA67
square
#2221AA #AA2165 #A9AA21 #21AA67
split-complementary
#2221AA #AA6721 #65AA21
monochromatic
#0D0D43 #181777 #2221AA #3231D7 #6564E1

Accessibility & contrast

On white

11.25
#2221AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2221AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2221AA
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2221AA#FFFFFF#000000##FFFFFF
##2221AA1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.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: #2221aa;
/* rgb */ color: rgb(34, 33, 170);
/* oklch */ color: oklch(37.2% 0.206 270.7);
Tailwind
colors: {
  custom: {
    50: '#7760c5',
    500: '#2221aa',
    950: '#000000',
  },
}
SCSS
$custom: #2221aa;
$custom-light: #7760c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2221aa",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 240.438,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3718,
    "c": 0.20585,
    "h": 270.7
  },
  "luminance": 0.0433
}

Semantic roles & 50–950 ramp

primary
#2221AA
secondary
#C5C661
accent
#EA3DE9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2221AA

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

Preview Lab → · Contrast checker → · Palette generator →

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