#2A22A3#2A22A3

#2A22A3 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.195 H 274.0°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2A22A3
RGBrgb(42, 34, 163)
HSLhsl(244, 65%, 39%)
HSVhsv(244, 79%, 64%)
CMYKcmyk(74.2%, 79.1%, 0%, 36.1%)
CIE-LABlab(24.58, 45.46, -67.10)
CIE-LCHlch(24.58, 81.05, 304.12°)
OKLaboklab(36.96% 0.0136 -0.1941)
OKLCHoklch(36.96% 0.195 274)
XYZxyz(8.1355, 4.2798, 35.0406)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A22A3 #9BA322
analogous
#225AA3 #2A22A3 #6A22A3
triadic
#2A22A3 #A32A22 #22A32A
tetradic
#2A22A3 #A3225A #9BA322 #22A36A
square
#2A22A3 #A3225A #9BA322 #22A36A
split-complementary
#2A22A3 #A36A22 #5AA322
monochromatic
#100D3E #1D1770 #2A22A3 #392FD4 #6961DE

Accessibility & contrast

On white

11.31
#2A22A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A22A3
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A22A3#FFFFFF#000000##FFFFFF
##2A22A31.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A7
Deuteranopia (green-blind)
#0034A1
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a22a3;
/* rgb */ color: rgb(42, 34, 163);
/* oklch */ color: oklch(37.0% 0.195 274.0);
Tailwind
colors: {
  custom: {
    50: '#7860c0',
    500: '#2a22a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a22a3;
$custom-light: #7860c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a22a3",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 243.721,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36963,
    "c": 0.19457,
    "h": 274
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#2A22A3
secondary
#BDC35E
accent
#E83FDE
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A22A3

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

Preview Lab → · Contrast checker → · Palette generator →

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