#3A237E#3A237E

#3A237E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.144 H 288.0°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#3A237E
RGBrgb(58, 35, 126)
HSLhsl(255, 57%, 32%)
HSVhsv(255, 72%, 49%)
CMYKcmyk(54%, 72.2%, 0%, 50.6%)
CIE-LABlab(22.33, 35.09, -47.81)
CIE-LCHlch(22.33, 59.30, 306.28°)
OKLaboklab(34.58% 0.0446 -0.1373)
OKLCHoklch(34.58% 0.144 288)
XYZxyz(6.1107, 3.6077, 20.1090)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A237E #677E23
analogous
#233A7E #3A237E #68237E
triadic
#3A237E #7E3A23 #237E3A
tetradic
#3A237E #7E233A #677E23 #237E68
square
#3A237E #7E233A #677E23 #237E68
split-complementary
#3A237E #7E6823 #3A7E23
monochromatic
#0E081E #24164E #3A237E #5030AE #6E4ECE

Accessibility & contrast

On white

12.20
#3A237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A237E
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A237E#FFFFFF#000000##FFFFFF
##3A237E1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#203B4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a237e;
/* rgb */ color: rgb(58, 35, 126);
/* oklch */ color: oklch(34.6% 0.144 288.0);
Tailwind
colors: {
  custom: {
    50: '#7860a4',
    500: '#3a237e',
    950: '#000000',
  },
}
SCSS
$custom: #3a237e;
$custom-light: #7860a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a237e",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 255.165,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34577,
    "c": 0.14438,
    "h": 288
  },
  "luminance": 0.03608
}

Semantic roles & 50–950 ramp

primary
#3A237E
secondary
#97B04C
accent
#E048B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3A237E

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

Preview Lab → · Contrast checker → · Palette generator →

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