#3D188E#3D188E

#3D188E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.175 H 287.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#3D188E
RGBrgb(61, 24, 142)
HSLhsl(259, 71%, 33%)
HSVhsv(259, 83%, 56%)
CMYKcmyk(57%, 83.1%, 0%, 44.3%)
CIE-LABlab(22.30, 45.83, -57.90)
CIE-LCHlch(22.30, 73.84, 308.36°)
OKLaboklab(35.11% 0.0535 -0.1667)
OKLCHoklch(35.11% 0.175 287.8)
XYZxyz(7.1321, 3.5980, 25.9046)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D188E #698E18
analogous
#182E8E #3D188E #78188E
triadic
#3D188E #8E3D18 #188E3D
tetradic
#3D188E #8E182E #698E18 #188E78
square
#3D188E #8E182E #698E18 #188E78
split-complementary
#3D188E #8E7818 #2E8E18
monochromatic
#100625 #270F5A #3D188E #5321C2 #7341DF

Accessibility & contrast

On white

12.21
#3D188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3D188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D188E
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D188E#FFFFFF#000000##FFFFFF
##3D188E1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#193C54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d188e;
/* rgb */ color: rgb(61, 24, 142);
/* oklch */ color: oklch(35.1% 0.175 287.8);
Tailwind
colors: {
  custom: {
    50: '#7d5bb0',
    500: '#3d188e',
    950: '#000000',
  },
}
SCSS
$custom: #3d188e;
$custom-light: #7d5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d188e",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 258.814,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35111,
    "c": 0.17505,
    "h": 287.8
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#3D188E
secondary
#98C042
accent
#EE3AB5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D188E

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

Preview Lab → · Contrast checker → · Palette generator →

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