#3A238B#3A238B

#3A238B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.161 H 285.0°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#3A238B
RGBrgb(58, 35, 139)
HSLhsl(253, 60%, 34%)
HSVhsv(253, 75%, 55%)
CMYKcmyk(58.3%, 74.8%, 0%, 45.5%)
CIE-LABlab(23.56, 39.13, -53.97)
CIE-LCHlch(23.56, 66.66, 305.94°)
OKLaboklab(35.83% 0.0417 -0.1554)
OKLCHoklch(35.83% 0.161 285)
XYZxyz(7.0047, 3.9653, 24.8174)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A238B #748B23
analogous
#23408B #3A238B #6E238B
triadic
#3A238B #8B3A23 #238B3A
tetradic
#3A238B #8B2340 #748B23 #238B6E
square
#3A238B #8B2340 #748B23 #238B6E
split-complementary
#3A238B #8B6E23 #408B23
monochromatic
#110A29 #26175A #3A238B #4E2FBC #7154D4

Accessibility & contrast

On white

11.71
#3A238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A238B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A238B#FFFFFF#000000##FFFFFF
##3A238B1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#113F55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a238b;
/* rgb */ color: rgb(58, 35, 139);
/* oklch */ color: oklch(35.8% 0.161 285.0);
Tailwind
colors: {
  custom: {
    50: '#7a60ae',
    500: '#3a238b',
    950: '#000000',
  },
}
SCSS
$custom: #3a238b;
$custom-light: #7a60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3a238b",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 253.269,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35825,
    "c": 0.16088,
    "h": 285
  },
  "luminance": 0.03966
}

Semantic roles & 50–950 ramp

primary
#3A238B
secondary
#A1B852
accent
#E345C0
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A238B

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

Preview Lab → · Contrast checker → · Palette generator →

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