#2A22A2#2A22A2

#2A22A2 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.9% C 0.193 H 274.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2A22A2
RGBrgb(42, 34, 162)
HSLhsl(244, 65%, 38%)
HSVhsv(244, 79%, 64%)
CMYKcmyk(74.1%, 79%, 0%, 36.5%)
CIE-LABlab(24.46, 45.14, -66.68)
CIE-LCHlch(24.46, 80.52, 304.10°)
OKLaboklab(36.85% 0.0138 -0.1929)
OKLCHoklch(36.85% 0.193 274.1)
XYZxyz(8.0463, 4.2441, 34.5706)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A22A2 #9AA222
analogous
#225AA2 #2A22A2 #6A22A2
triadic
#2A22A2 #A22A22 #22A22A
tetradic
#2A22A2 #A2225A #9AA222 #22A26A
square
#2A22A2 #A2225A #9AA222 #22A26A
split-complementary
#2A22A2 #A26A22 #5AA222
monochromatic
#100D3D #1D176F #2A22A2 #382ED3 #6861DE

Accessibility & contrast

On white

11.36
#2A22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A22A2
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A22A2#FFFFFF#000000##FFFFFF
##2A22A21.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a22a2;
/* rgb */ color: rgb(42, 34, 162);
/* oklch */ color: oklch(36.9% 0.193 274.1);
Tailwind
colors: {
  custom: {
    50: '#7860bf',
    500: '#2a22a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a22a2;
$custom-light: #7860bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a22a2",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 243.75,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36851,
    "c": 0.19337,
    "h": 274.1
  },
  "luminance": 0.04245
}

Semantic roles & 50–950 ramp

primary
#2A22A2
secondary
#BCC35D
accent
#E840DE
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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