#2221AC#2221AC

#2221AC is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.4% C 0.208 H 270.6°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#2221AC
RGBrgb(34, 33, 172)
HSLhsl(240, 68%, 40%)
HSVhsv(240, 81%, 67%)
CMYKcmyk(80.2%, 80.8%, 0%, 32.5%)
CIE-LABlab(24.97, 48.29, -71.90)
CIE-LCHlch(24.97, 86.62, 303.89°)
OKLaboklab(37.41% 0.0023 -0.2082)
OKLCHoklch(37.41% 0.208 270.6)
XYZxyz(8.6474, 4.4054, 39.4163)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2221AC #ABAC21
analogous
#2165AC #2221AC #6821AC
triadic
#2221AC #AC2221 #21AC22
tetradic
#2221AC #AC2165 #ABAC21 #21AC68
square
#2221AC #AC2165 #ABAC21 #21AC68
split-complementary
#2221AC #AC6821 #65AC21
monochromatic
#0E0D45 #181779 #2221AC #3432D8 #6766E2

Accessibility & contrast

On white

11.16
#2221AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2221AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2221AC#FFFFFF#000000##FFFFFF
##2221AC1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2221ac;
/* rgb */ color: rgb(34, 33, 172);
/* oklch */ color: oklch(37.4% 0.208 270.6);
Tailwind
colors: {
  custom: {
    50: '#7860c6',
    500: '#2221ac',
    950: '#000000',
  },
}
SCSS
$custom: #2221ac;
$custom-light: #7860c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2221ac",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 240.432,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37414,
    "c": 0.20818,
    "h": 270.6
  },
  "luminance": 0.04406
}

Semantic roles & 50–950 ramp

primary
#2221AC
secondary
#C6C762
accent
#EB3DE9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2221AC

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

Preview Lab → · Contrast checker → · Palette generator →

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