#3A188F#3A188F

#3A188F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.176 H 285.9°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#3A188F
RGBrgb(58, 24, 143)
HSLhsl(257, 71%, 33%)
HSVhsv(257, 83%, 56%)
CMYKcmyk(59.4%, 83.2%, 0%, 43.9%)
CIE-LABlab(22.07, 45.76, -58.90)
CIE-LCHlch(22.07, 74.59, 307.84°)
OKLaboklab(34.91% 0.0483 -0.1697)
OKLCHoklch(34.91% 0.176 285.9)
XYZxyz(7.0280, 3.5356, 26.2934)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A188F #6D8F18
analogous
#18318F #3A188F #75188F
triadic
#3A188F #8F3A18 #188F3A
tetradic
#3A188F #8F1831 #6D8F18 #188F75
square
#3A188F #8F1831 #6D8F18 #188F75
split-complementary
#3A188F #8F7518 #318F18
monochromatic
#0F0626 #250F5B #3A188F #4F21C3 #6F42DF

Accessibility & contrast

On white

12.30
#3A188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3A188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A188F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A188F#FFFFFF#000000##FFFFFF
##3A188F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#0B3C55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a188f;
/* rgb */ color: rgb(58, 24, 143);
/* oklch */ color: oklch(34.9% 0.176 285.9);
Tailwind
colors: {
  custom: {
    50: '#7c5bb1',
    500: '#3a188f',
    950: '#000000',
  },
}
SCSS
$custom: #3a188f;
$custom-light: #7c5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a188f",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 257.143,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34911,
    "c": 0.17642,
    "h": 285.9
  },
  "luminance": 0.03536
}

Semantic roles & 50–950 ramp

primary
#3A188F
secondary
#9CC043
accent
#EE3ABB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A188F

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

Preview Lab → · Contrast checker → · Palette generator →

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