#2222A5#2222A5

#2222A5 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.199 H 271.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2222A5
RGBrgb(34, 34, 165)
HSLhsl(240, 66%, 39%)
HSVhsv(240, 79%, 65%)
CMYKcmyk(79.4%, 79.4%, 0%, 35.3%)
CIE-LABlab(24.32, 45.51, -68.75)
CIE-LCHlch(24.32, 82.45, 303.51°)
OKLaboklab(36.72% 0.0034 -0.199)
OKLCHoklch(36.72% 0.199 271)
XYZxyz(8.0209, 4.1998, 35.9779)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2222A5 #A5A522
analogous
#2264A5 #2222A5 #6422A5
triadic
#2222A5 #A52222 #22A522
tetradic
#2222A5 #A52264 #A5A522 #22A564
square
#2222A5 #A52264 #A5A522 #22A564
split-complementary
#2222A5 #A56422 #64A522
monochromatic
#0D0D40 #181872 #2222A5 #3030D4 #6363DF

Accessibility & contrast

On white

11.41
#2222A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2222A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2222A5#FFFFFF#000000##FFFFFF
##2222A51.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0033A3
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2222a5;
/* rgb */ color: rgb(34, 34, 165);
/* oklch */ color: oklch(36.7% 0.199 271.0);
Tailwind
colors: {
  custom: {
    50: '#7660c1',
    500: '#2222a5',
    950: '#000000',
  },
}
SCSS
$custom: #2222a5;
$custom-light: #7660c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2222a5",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 240,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.36723,
    "c": 0.19908,
    "h": 271
  },
  "luminance": 0.04201
}

Semantic roles & 50–950 ramp

primary
#2222A5
secondary
#C4C45F
accent
#E93FE9
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2222A5

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

Preview Lab → · Contrast checker → · Palette generator →

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