#3A2EB8#3A2EB8

#3A2EB8 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.9% C 0.205 H 276.7°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#3A2EB8
RGBrgb(58, 46, 184)
HSLhsl(245, 60%, 45%)
HSVhsv(245, 75%, 72%)
CMYKcmyk(68.5%, 75%, 0%, 27.8%)
CIE-LABlab(30.19, 47.28, -70.39)
CIE-LCHlch(30.19, 84.79, 303.89°)
OKLaboklab(41.87% 0.024 -0.2034)
OKLCHoklch(41.87% 0.205 276.7)
XYZxyz(11.3708, 6.3132, 45.9574)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2EB8 #ACB82E
analogous
#2E67B8 #3A2EB8 #7F2EB8
triadic
#3A2EB8 #B83A2E #2EB83A
tetradic
#3A2EB8 #B82E67 #ACB82E #2EB87F
square
#3A2EB8 #B82E67 #ACB82E #2EB87F
split-complementary
#3A2EB8 #B87F2E #67B82E
monochromatic
#1B1656 #2B2287 #3A2EB8 #5B50D3 #8981DF

Accessibility & contrast

On white

9.28
#3A2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#3A2EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2EB8
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2EB8#FFFFFF#000000##FFFFFF
##3A2EB81.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBC
Deuteranopia (green-blind)
#0041B6
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3a2eb8;
/* rgb */ color: rgb(58, 46, 184);
/* oklch */ color: oklch(41.9% 0.205 276.7);
Tailwind
colors: {
  custom: {
    50: '#8269cf',
    500: '#3a2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #3a2eb8;
$custom-light: #8269cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2eb8",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 245.217,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4187,
    "c": 0.20482,
    "h": 276.7
  },
  "luminance": 0.06314
}

Semantic roles & 50–950 ramp

primary
#3A2EB8
secondary
#C2C879
accent
#E345D5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #3A2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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