#3D188F#3D188F

#3D188F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.176 H 287.6°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#3D188F
RGBrgb(61, 24, 143)
HSLhsl(259, 71%, 33%)
HSVhsv(259, 83%, 56%)
CMYKcmyk(57.3%, 83.2%, 0%, 43.9%)
CIE-LABlab(22.40, 46.11, -58.35)
CIE-LCHlch(22.40, 74.37, 308.32°)
OKLaboklab(35.22% 0.0532 -0.168)
OKLCHoklch(35.22% 0.176 287.6)
XYZxyz(7.2076, 3.6281, 26.3018)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D188F #6A8F18
analogous
#182F8F #3D188F #78188F
triadic
#3D188F #8F3D18 #188F3D
tetradic
#3D188F #8F182F #6A8F18 #188F78
square
#3D188F #8F182F #6A8F18 #188F78
split-complementary
#3D188F #8F7818 #2F8F18
monochromatic
#100626 #270F5B #3D188F #5321C3 #7342DF

Accessibility & contrast

On white

12.17
#3D188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3D188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D188F
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D188F#FFFFFF#000000##FFFFFF
##3D188F1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#173C55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d188f;
/* rgb */ color: rgb(61, 24, 143);
/* oklch */ color: oklch(35.2% 0.176 287.6);
Tailwind
colors: {
  custom: {
    50: '#7d5bb1',
    500: '#3d188f',
    950: '#000000',
  },
}
SCSS
$custom: #3d188f;
$custom-light: #7d5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d188f",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 258.655,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35216,
    "c": 0.17619,
    "h": 287.6
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#3D188F
secondary
#99C043
accent
#EE3AB6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D188F

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

Preview Lab → · Contrast checker → · Palette generator →

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