#2A22B3#2A22B3

#2A22B3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.8% C 0.213 H 272.6°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2A22B3
RGBrgb(42, 34, 179)
HSLhsl(243, 68%, 42%)
HSVhsv(243, 81%, 70%)
CMYKcmyk(76.5%, 81%, 0%, 29.8%)
CIE-LABlab(26.42, 50.50, -73.68)
CIE-LCHlch(26.42, 89.33, 304.43°)
OKLaboklab(38.78% 0.0098 -0.2132)
OKLCHoklch(38.78% 0.213 272.6)
XYZxyz(9.6608, 4.8899, 43.0738)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A22B3 #ABB322
analogous
#2263B3 #2A22B3 #7222B3
triadic
#2A22B3 #B32A22 #22B32A
tetradic
#2A22B3 #B32263 #ABB322 #22B372
square
#2A22B3 #B32263 #ABB322 #22B372
split-complementary
#2A22B3 #B37222 #63B322
monochromatic
#120E4C #1E1880 #2A22B3 #4239D9 #736CE3

Accessibility & contrast

On white

10.62
#2A22B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A22B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A22B3
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A22B3#FFFFFF#000000##FFFFFF
##2A22B31.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a22b3;
/* rgb */ color: rgb(42, 34, 179);
/* oklch */ color: oklch(38.8% 0.213 272.6);
Tailwind
colors: {
  custom: {
    50: '#7c61cb',
    500: '#2a22b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a22b3;
$custom-light: #7c61cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a22b3",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 243.31,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.38785,
    "c": 0.21342,
    "h": 272.6
  },
  "luminance": 0.04891
}

Semantic roles & 50–950 ramp

primary
#2A22B3
secondary
#C4C968
accent
#EB3DE1
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #2A22B3

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

Preview Lab → · Contrast checker → · Palette generator →

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