#3A187C#3A187C

#3A187C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.154 H 290.8°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#3A187C
RGBrgb(58, 24, 124)
HSLhsl(260, 68%, 29%)
HSVhsv(260, 81%, 49%)
CMYKcmyk(53.2%, 80.6%, 0%, 51.4%)
CIE-LABlab(20.08, 40.31, -50.24)
CIE-LCHlch(20.08, 64.41, 308.75°)
OKLaboklab(32.93% 0.0547 -0.1444)
OKLCHoklch(32.93% 0.154 290.8)
XYZxyz(5.7086, 3.0078, 19.3446)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A187C #5A7C18
analogous
#18287C #3A187C #6C187C
triadic
#3A187C #7C3A18 #187C3A
tetradic
#3A187C #7C1828 #5A7C18 #187C6C
square
#3A187C #7C1828 #5A7C18 #187C6C
split-complementary
#3A187C #7C6C18 #287C18
monochromatic
#0C051A #220E49 #3A187C #5222AF #6D36D8

Accessibility & contrast

On white

13.11
#3A187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3A187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A187C
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A187C#FFFFFF#000000##FFFFFF
##3A187C1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#22344A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a187c;
/* rgb */ color: rgb(58, 24, 124);
/* oklch */ color: oklch(32.9% 0.154 290.8);
Tailwind
colors: {
  custom: {
    50: '#7859a3',
    500: '#3a187c',
    950: '#000000',
  },
}
SCSS
$custom: #3a187c;
$custom-light: #7859a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a187c",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 260.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32927,
    "c": 0.15439,
    "h": 290.8
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#3A187C
secondary
#8AB13F
accent
#EA3DB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A187C

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

Preview Lab → · Contrast checker → · Palette generator →

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