#3A237A#3A237A

#3A237A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.139 H 289.0°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#3A237A
RGBrgb(58, 35, 122)
HSLhsl(256, 55%, 31%)
HSVhsv(256, 71%, 48%)
CMYKcmyk(52.5%, 71.3%, 0%, 52.2%)
CIE-LABlab(21.97, 33.85, -45.86)
CIE-LCHlch(21.97, 57.00, 306.43°)
OKLaboklab(34.21% 0.0453 -0.1316)
OKLCHoklch(34.21% 0.139 289)
XYZxyz(5.8578, 3.5065, 18.7767)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A237A #637A23
analogous
#23377A #3A237A #65237A
triadic
#3A237A #7A3A23 #237A3A
tetradic
#3A237A #7A2337 #637A23 #237A65
square
#3A237A #7A2337 #637A23 #237A65
split-complementary
#3A237A #7A6523 #377A23
monochromatic
#0D081B #23154A #3A237A #5131AA #6E4CCC

Accessibility & contrast

On white

12.34
#3A237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3A237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A237A
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A237A#FFFFFF#000000##FFFFFF
##3A237A1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#23394B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a237a;
/* rgb */ color: rgb(58, 35, 122);
/* oklch */ color: oklch(34.2% 0.139 289.0);
Tailwind
colors: {
  custom: {
    50: '#7760a1',
    500: '#3a237a',
    950: '#000000',
  },
}
SCSS
$custom: #3a237a;
$custom-light: #7760a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a237a",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 255.862,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34206,
    "c": 0.13918,
    "h": 289
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#3A237A
secondary
#93AD4C
accent
#DF49B7
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3A237A

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

Preview Lab → · Contrast checker → · Palette generator →

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