#3A22B5#3A22B5

#3A22B5 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.1% C 0.212 H 278.3°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#3A22B5
RGBrgb(58, 34, 181)
HSLhsl(250, 68%, 42%)
HSVhsv(250, 81%, 71%)
CMYKcmyk(68%, 81.2%, 0%, 29%)
CIE-LABlab(27.79, 52.34, -72.57)
CIE-LCHlch(27.79, 89.48, 305.80°)
OKLaboklab(40.1% 0.0307 -0.2096)
OKLCHoklch(40.1% 0.212 278.3)
XYZxyz(10.6548, 5.3789, 44.1838)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22B5 #9DB522
analogous
#2254B5 #3A22B5 #8422B5
triadic
#3A22B5 #B53A22 #22B53A
tetradic
#3A22B5 #B52254 #9DB522 #22B584
square
#3A22B5 #B52254 #9DB522 #22B584
split-complementary
#3A22B5 #B58422 #54B522
monochromatic
#190F4E #291881 #3A22B5 #543ADA #816EE4

Accessibility & contrast

On white

10.12
#3A22B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3A22B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A22B5
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22B5#FFFFFF#000000##FFFFFF
##3A22B51.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B9
Deuteranopia (green-blind)
#003CB2
Tritanopia (blue-blind)
#00506D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3a22b5;
/* rgb */ color: rgb(58, 34, 181);
/* oklch */ color: oklch(40.1% 0.212 278.3);
Tailwind
colors: {
  custom: {
    50: '#8262cd',
    500: '#3a22b5',
    950: '#000000',
  },
}
SCSS
$custom: #3a22b5;
$custom-light: #8262cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22b5",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 181
  },
  "hsl": {
    "h": 249.796,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40096,
    "c": 0.21187,
    "h": 278.3
  },
  "luminance": 0.0538
}

Semantic roles & 50–950 ramp

primary
#3A22B5
secondary
#BACA69
accent
#EB3DCF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3A22B5

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

Preview Lab → · Contrast checker → · Palette generator →

#3A22B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva