#3A187F#3A187F

#3A187F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.158 H 289.9°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#3A187F
RGBrgb(58, 24, 127)
HSLhsl(260, 68%, 30%)
HSVhsv(260, 81%, 50%)
CMYKcmyk(54.3%, 81.1%, 0%, 50.2%)
CIE-LABlab(20.38, 41.18, -51.64)
CIE-LCHlch(20.38, 66.05, 308.57°)
OKLaboklab(33.23% 0.0538 -0.1485)
OKLCHoklch(33.23% 0.158 289.9)
XYZxyz(5.9012, 3.0848, 20.3591)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A187F #5D7F18
analogous
#18297F #3A187F #6E187F
triadic
#3A187F #7F3A18 #187F3A
tetradic
#3A187F #7F1829 #5D7F18 #187F6E
square
#3A187F #7F1829 #5D7F18 #187F6E
split-complementary
#3A187F #7F6E18 #297F18
monochromatic
#0C051A #220E4C #3A187F #5222B2 #6D38D9

Accessibility & contrast

On white

12.99
#3A187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3A187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A187F
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A187F#FFFFFF#000000##FFFFFF
##3A187F1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#20364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a187f;
/* rgb */ color: rgb(58, 24, 127);
/* oklch */ color: oklch(33.2% 0.158 289.9);
Tailwind
colors: {
  custom: {
    50: '#795aa5',
    500: '#3a187f',
    950: '#000000',
  },
}
SCSS
$custom: #3a187f;
$custom-light: #795aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a187f",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 259.806,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33232,
    "c": 0.1579,
    "h": 289.9
  },
  "luminance": 0.03085
}

Semantic roles & 50–950 ramp

primary
#3A187F
secondary
#8DB33F
accent
#EB3DB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A187F

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

Preview Lab → · Contrast checker → · Palette generator →

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