#2A22A4#2A22A4

#2A22A4 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.196 H 273.9°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#2A22A4
RGBrgb(42, 34, 164)
HSLhsl(244, 66%, 39%)
HSVhsv(244, 79%, 64%)
CMYKcmyk(74.4%, 79.3%, 0%, 35.7%)
CIE-LABlab(24.69, 45.78, -67.52)
CIE-LCHlch(24.69, 81.57, 304.14°)
OKLaboklab(37.08% 0.0133 -0.1953)
OKLCHoklch(37.08% 0.196 273.9)
XYZxyz(8.2255, 4.3158, 35.5143)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A22A4 #9CA422
analogous
#225BA4 #2A22A4 #6B22A4
triadic
#2A22A4 #A42A22 #22A42A
tetradic
#2A22A4 #A4225B #9CA422 #22A46B
square
#2A22A4 #A4225B #9CA422 #22A46B
split-complementary
#2A22A4 #A46B22 #5BA422
monochromatic
#100D3F #1D1771 #2A22A4 #392FD4 #6A62DE

Accessibility & contrast

On white

11.27
#2A22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A22A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A22A4
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A22A4#FFFFFF#000000##FFFFFF
##2A22A41.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0034A2
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a22a4;
/* rgb */ color: rgb(42, 34, 164);
/* oklch */ color: oklch(37.1% 0.196 273.9);
Tailwind
colors: {
  custom: {
    50: '#7860c0',
    500: '#2a22a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a22a4;
$custom-light: #7860c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a22a4",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 243.692,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37076,
    "c": 0.19577,
    "h": 273.9
  },
  "luminance": 0.04317
}

Semantic roles & 50–950 ramp

primary
#2A22A4
secondary
#BDC45E
accent
#E93FDE
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2A22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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