#3A22B4#3A22B4

#3A22B4 is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 40.0% C 0.211 H 278.5°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#3A22B4
RGBrgb(58, 34, 180)
HSLhsl(250, 68%, 42%)
HSVhsv(250, 81%, 71%)
CMYKcmyk(67.8%, 81.1%, 0%, 29.4%)
CIE-LABlab(27.68, 52.05, -72.16)
CIE-LCHlch(27.68, 88.97, 305.80°)
OKLaboklab(39.99% 0.031 -0.2084)
OKLCHoklch(39.99% 0.211 278.5)
XYZxyz(10.5525, 5.3380, 43.6454)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22B4 #9CB422
analogous
#2253B4 #3A22B4 #8322B4
triadic
#3A22B4 #B43A22 #22B43A
tetradic
#3A22B4 #B42253 #9CB422 #22B483
square
#3A22B4 #B42253 #9CB422 #22B483
split-complementary
#3A22B4 #B48322 #53B422
monochromatic
#190F4D #291881 #3A22B4 #543ADA #806DE3

Accessibility & contrast

On white

10.16
#3A22B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3A22B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A22B4
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22B4#FFFFFF#000000##FFFFFF
##3A22B41.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#003BB1
Tritanopia (blue-blind)
#004F6C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a22b4;
/* rgb */ color: rgb(58, 34, 180);
/* oklch */ color: oklch(40.0% 0.211 278.5);
Tailwind
colors: {
  custom: {
    50: '#8262cc',
    500: '#3a22b4',
    950: '#000000',
  },
}
SCSS
$custom: #3a22b4;
$custom-light: #8262cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22b4",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 249.863,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39987,
    "c": 0.21072,
    "h": 278.5
  },
  "luminance": 0.05339
}

Semantic roles & 50–950 ramp

primary
#3A22B4
secondary
#BACA68
accent
#EB3DCE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3A22B4

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

Preview Lab → · Contrast checker → · Palette generator →

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