#3A187E#3A187E

#3A187E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.157 H 290.2°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#3A187E
RGBrgb(58, 24, 126)
HSLhsl(260, 68%, 29%)
HSVhsv(260, 81%, 49%)
CMYKcmyk(54%, 81%, 0%, 50.6%)
CIE-LABlab(20.28, 40.89, -51.17)
CIE-LCHlch(20.28, 65.50, 308.63°)
OKLaboklab(33.13% 0.0541 -0.1471)
OKLCHoklch(33.13% 0.157 290.2)
XYZxyz(5.8364, 3.0589, 20.0175)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A187E #5C7E18
analogous
#18297E #3A187E #6D187E
triadic
#3A187E #7E3A18 #187E3A
tetradic
#3A187E #7E1829 #5C7E18 #187E6D
square
#3A187E #7E1829 #5C7E18 #187E6D
split-complementary
#3A187E #7E6D18 #297E18
monochromatic
#0C051A #220E4B #3A187E #5222B1 #6D37D9

Accessibility & contrast

On white

13.03
#3A187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3A187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A187E
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A187E#FFFFFF#000000##FFFFFF
##3A187E1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#21354B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a187e;
/* rgb */ color: rgb(58, 24, 126);
/* oklch */ color: oklch(33.1% 0.157 290.2);
Tailwind
colors: {
  custom: {
    50: '#795aa4',
    500: '#3a187e',
    950: '#000000',
  },
}
SCSS
$custom: #3a187e;
$custom-light: #795aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a187e",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 260,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3313,
    "c": 0.15674,
    "h": 290.2
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#3A187E
secondary
#8CB23F
accent
#EB3DB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A187E

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

Preview Lab → · Contrast checker → · Palette generator →

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