#3A239D#3A239D

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

Color values

HEX#3A239D
RGBrgb(58, 35, 157)
HSLhsl(251, 64%, 38%)
HSVhsv(251, 78%, 62%)
CMYKcmyk(63.1%, 77.7%, 0%, 38.4%)
CIE-LABlab(25.37, 44.67, -62.09)
CIE-LCHlch(25.37, 76.49, 305.73°)
OKLaboklab(37.65% 0.0371 -0.1791)
OKLCHoklch(37.65% 0.183 281.7)
XYZxyz(8.4298, 4.5353, 32.3229)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A239D #869D23
analogous
#23499D #3A239D #77239D
triadic
#3A239D #9D3A23 #239D3A
tetradic
#3A239D #9D2349 #869D23 #239D77
square
#3A239D #9D2349 #869D23 #239D77
split-complementary
#3A239D #9D7723 #499D23
monochromatic
#150D39 #28186B #3A239D #4C2ECF #765FDB

Accessibility & contrast

On white

11.01
#3A239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A239D
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A239D#FFFFFF#000000##FFFFFF
##3A239D1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a239d;
/* rgb */ color: rgb(58, 35, 157);
/* oklch */ color: oklch(37.6% 0.183 281.7);
Tailwind
colors: {
  custom: {
    50: '#7d61bb',
    500: '#3a239d',
    950: '#000000',
  },
}
SCSS
$custom: #3a239d;
$custom-light: #7d61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a239d",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 251.311,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37646,
    "c": 0.18293,
    "h": 281.7
  },
  "luminance": 0.04536
}

Semantic roles & 50–950 ramp

primary
#3A239D
secondary
#ADC05C
accent
#E741C7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A239D

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

Preview Lab → · Contrast checker → · Palette generator →

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