#2A22A5#2A22A5

#2A22A5 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.197 H 273.8°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2A22A5
RGBrgb(42, 34, 165)
HSLhsl(244, 66%, 39%)
HSVhsv(244, 79%, 65%)
CMYKcmyk(74.5%, 79.4%, 0%, 35.3%)
CIE-LABlab(24.80, 46.10, -67.94)
CIE-LCHlch(24.80, 82.10, 304.16°)
OKLaboklab(37.19% 0.0131 -0.1965)
OKLCHoklch(37.19% 0.197 273.8)
XYZxyz(8.3161, 4.3521, 35.9918)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A22A5 #9DA522
analogous
#225CA5 #2A22A5 #6C22A5
triadic
#2A22A5 #A52A22 #22A52A
tetradic
#2A22A5 #A5225C #9DA522 #22A56C
square
#2A22A5 #A5225C #9DA522 #22A56C
split-complementary
#2A22A5 #A56C22 #5CA522
monochromatic
#100D40 #1D1872 #2A22A5 #3A30D4 #6A63DF

Accessibility & contrast

On white

11.23
#2A22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A22A5
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A22A5#FFFFFF#000000##FFFFFF
##2A22A51.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a22a5;
/* rgb */ color: rgb(42, 34, 165);
/* oklch */ color: oklch(37.2% 0.197 273.8);
Tailwind
colors: {
  custom: {
    50: '#7960c1',
    500: '#2a22a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a22a5;
$custom-light: #7960c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a22a5",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 243.664,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37188,
    "c": 0.19697,
    "h": 273.8
  },
  "luminance": 0.04353
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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