#3A249B#3A249B

#3A249B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.180 H 281.9°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#3A249B
RGBrgb(58, 36, 155)
HSLhsl(251, 62%, 37%)
HSVhsv(251, 77%, 61%)
CMYKcmyk(62.6%, 76.8%, 0%, 39.2%)
CIE-LABlab(25.34, 43.54, -60.91)
CIE-LCHlch(25.34, 74.87, 305.56°)
OKLaboklab(37.57% 0.037 -0.1757)
OKLCHoklch(37.57% 0.18 281.9)
XYZxyz(8.2903, 4.5273, 31.4410)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A249B #859B24
analogous
#244A9B #3A249B #75249B
triadic
#3A249B #9B3A24 #249B3A
tetradic
#3A249B #9B244A #859B24 #249B75
square
#3A249B #9B244A #859B24 #249B75
split-complementary
#3A249B #9B7524 #4A9B24
monochromatic
#150D38 #271869 #3A249B #4D30CD #765FDA

Accessibility & contrast

On white

11.02
#3A249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3A249B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A249B
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A249B#FFFFFF#000000##FFFFFF
##3A249B1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a249b;
/* rgb */ color: rgb(58, 36, 155);
/* oklch */ color: oklch(37.6% 0.180 281.9);
Tailwind
colors: {
  custom: {
    50: '#7d62ba',
    500: '#3a249b',
    950: '#000000',
  },
}
SCSS
$custom: #3a249b;
$custom-light: #7d62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a249b",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 251.092,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37567,
    "c": 0.17953,
    "h": 281.9
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#3A249B
secondary
#ADBF5C
accent
#E542C7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A249B

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

Preview Lab → · Contrast checker → · Palette generator →

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