#3A189F#3A189F

#3A189F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.195 H 282.6°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#3A189F
RGBrgb(58, 24, 159)
HSLhsl(255, 74%, 36%)
HSVhsv(255, 85%, 62%)
CMYKcmyk(63.5%, 84.9%, 0%, 37.6%)
CIE-LABlab(23.85, 50.29, -65.82)
CIE-LCHlch(23.85, 82.83, 307.38°)
OKLaboklab(36.66% 0.0425 -0.1898)
OKLCHoklch(36.66% 0.195 282.6)
XYZxyz(8.3276, 4.0554, 33.1381)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A189F #7D9F18
analogous
#18399F #3A189F #7D189F
triadic
#3A189F #9F3A18 #189F3A
tetradic
#3A189F #9F1839 #7D9F18 #189F7D
square
#3A189F #9F1839 #7D9F18 #189F7D
split-complementary
#3A189F #9F7D18 #399F18
monochromatic
#130835 #27106A #3A189F #4D20D4 #734DE4

Accessibility & contrast

On white

11.59
#3A189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3A189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A189F
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A189F#FFFFFF#000000##FFFFFF
##3A189F1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a189f;
/* rgb */ color: rgb(58, 24, 159);
/* oklch */ color: oklch(36.7% 0.195 282.6);
Tailwind
colors: {
  custom: {
    50: '#7f5cbd',
    500: '#3a189f',
    950: '#000000',
  },
}
SCSS
$custom: #3a189f;
$custom-light: #7f5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a189f",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 255.111,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36662,
    "c": 0.19453,
    "h": 282.6
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#3A189F
secondary
#A8C64D
accent
#F037C2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A189F

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

Preview Lab → · Contrast checker → · Palette generator →

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