#2222A0#2222A0

#2222A0 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.193 H 271.3°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#2222A0
RGBrgb(34, 34, 160)
HSLhsl(240, 65%, 38%)
HSVhsv(240, 79%, 63%)
CMYKcmyk(78.8%, 78.8%, 0%, 37.3%)
CIE-LABlab(23.74, 43.87, -66.67)
CIE-LCHlch(23.74, 79.81, 303.34°)
OKLaboklab(36.15% 0.0045 -0.193)
OKLCHoklch(36.15% 0.193 271.3)
XYZxyz(7.5747, 4.0214, 33.6279)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2222A0 #A0A022
analogous
#2261A0 #2222A0 #6122A0
triadic
#2222A0 #A02222 #22A022
tetradic
#2222A0 #A02261 #A0A022 #22A061
square
#2222A0 #A02261 #A0A022 #22A061
split-complementary
#2222A0 #A06122 #61A022
monochromatic
#0D0D3B #17176E #2222A0 #2D2DD2 #5F5FDD

Accessibility & contrast

On white

11.64
#2222A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2222A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2222A0#FFFFFF#000000##FFFFFF
##2222A01.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00329E
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2222a0;
/* rgb */ color: rgb(34, 34, 160);
/* oklch */ color: oklch(36.1% 0.193 271.3);
Tailwind
colors: {
  custom: {
    50: '#7560bd',
    500: '#2222a0',
    950: '#000000',
  },
}
SCSS
$custom: #2222a0;
$custom-light: #7560bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2222a0",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 240,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36147,
    "c": 0.19307,
    "h": 271.3
  },
  "luminance": 0.04022
}

Semantic roles & 50–950 ramp

primary
#2222A0
secondary
#C2C25C
accent
#E840E8
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2222A0

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

Preview Lab → · Contrast checker → · Palette generator →

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