#3A238D#3A238D

#3A238D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.163 H 284.6°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#3A238D
RGBrgb(58, 35, 141)
HSLhsl(253, 60%, 35%)
HSVhsv(253, 75%, 55%)
CMYKcmyk(58.9%, 75.2%, 0%, 44.7%)
CIE-LABlab(23.75, 39.75, -54.89)
CIE-LCHlch(23.75, 67.77, 305.91°)
OKLaboklab(36.02% 0.0412 -0.1581)
OKLCHoklch(36.02% 0.163 284.6)
XYZxyz(7.1522, 4.0243, 25.5940)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A238D #768D23
analogous
#23418D #3A238D #6F238D
triadic
#3A238D #8D3A23 #238D3A
tetradic
#3A238D #8D2341 #768D23 #238D6F
square
#3A238D #8D2341 #768D23 #238D6F
split-complementary
#3A238D #8D6F23 #418D23
monochromatic
#120B2B #26175C #3A238D #4E2FBE #7155D5

Accessibility & contrast

On white

11.63
#3A238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3A238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A238D
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A238D#FFFFFF#000000##FFFFFF
##3A238D1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#0E4056
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a238d;
/* rgb */ color: rgb(58, 35, 141);
/* oklch */ color: oklch(36.0% 0.163 284.6);
Tailwind
colors: {
  custom: {
    50: '#7a61af',
    500: '#3a238d',
    950: '#000000',
  },
}
SCSS
$custom: #3a238d;
$custom-light: #7a61af;
$custom-dark: #000000;
JSON
{
  "hex": "#3a238d",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 253.019,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36022,
    "c": 0.16337,
    "h": 284.6
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#3A238D
secondary
#A3B953
accent
#E344C1
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A238D

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

Preview Lab → · Contrast checker → · Palette generator →

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