#2A22A1#2A22A1

#2A22A1 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.192 H 274.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2A22A1
RGBrgb(42, 34, 161)
HSLhsl(244, 65%, 38%)
HSVhsv(244, 79%, 63%)
CMYKcmyk(73.9%, 78.9%, 0%, 36.9%)
CIE-LABlab(24.35, 44.82, -66.26)
CIE-LCHlch(24.35, 79.99, 304.07°)
OKLaboklab(36.74% 0.014 -0.1916)
OKLCHoklch(36.74% 0.192 274.2)
XYZxyz(7.9578, 4.2087, 34.1043)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A22A1 #99A122
analogous
#2259A1 #2A22A1 #6A22A1
triadic
#2A22A1 #A12A22 #22A12A
tetradic
#2A22A1 #A12259 #99A122 #22A16A
square
#2A22A1 #A12259 #99A122 #22A16A
split-complementary
#2A22A1 #A16A22 #59A122
monochromatic
#100D3C #1D176E #2A22A1 #382DD3 #6860DD

Accessibility & contrast

On white

11.40
#2A22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A22A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A22A1
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A22A1#FFFFFF#000000##FFFFFF
##2A22A11.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a22a1;
/* rgb */ color: rgb(42, 34, 161);
/* oklch */ color: oklch(36.7% 0.192 274.2);
Tailwind
colors: {
  custom: {
    50: '#7860be',
    500: '#2a22a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a22a1;
$custom-light: #7860be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a22a1",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 243.78,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36739,
    "c": 0.19216,
    "h": 274.2
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#2A22A1
secondary
#BCC25D
accent
#E840DD
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A22A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2A22A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva