#3A137E#3A137E

#3A137E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.161 H 290.9°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#3A137E
RGBrgb(58, 19, 126)
HSLhsl(262, 74%, 28%)
HSVhsv(262, 85%, 49%)
CMYKcmyk(54%, 84.9%, 0%, 50.6%)
CIE-LABlab(19.52, 43.09, -52.42)
CIE-LCHlch(19.52, 67.86, 309.42°)
OKLaboklab(32.61% 0.0576 -0.1507)
OKLCHoklch(32.61% 0.161 290.9)
XYZxyz(5.7426, 2.8714, 19.9863)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A137E #577E13
analogous
#13217E #3A137E #6F137E
triadic
#3A137E #7E3A13 #137E3A
tetradic
#3A137E #7E1321 #577E13 #137E6F
square
#3A137E #7E1321 #577E13 #137E6F
split-complementary
#3A137E #7E6F13 #217E13
monochromatic
#0C041B #220B49 #3A137E #521BB3 #6D2CDF

Accessibility & contrast

On white

13.34
#3A137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3A137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A137E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A137E#FFFFFF#000000##FFFFFF
##3A137E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#21334A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a137e;
/* rgb */ color: rgb(58, 19, 126);
/* oklch */ color: oklch(32.6% 0.161 290.9);
Tailwind
colors: {
  custom: {
    50: '#7957a4',
    500: '#3a137e',
    950: '#000000',
  },
}
SCSS
$custom: #3a137e;
$custom-light: #7957a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a137e",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 261.869,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32606,
    "c": 0.16134,
    "h": 290.9
  },
  "luminance": 0.02872
}

Semantic roles & 50–950 ramp

primary
#3A137E
secondary
#87B439
accent
#F037AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3A137E

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

Preview Lab → · Contrast checker → · Palette generator →

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