#3D1158#3D1158

#3D1158 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.121 H 308.8°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#3D1158
RGBrgb(61, 17, 88)
HSLhsl(277, 68%, 21%)
HSVhsv(277, 81%, 35%)
CMYKcmyk(30.7%, 80.7%, 0%, 65.5%)
CIE-LABlab(15.99, 34.36, -33.33)
CIE-LCHlch(15.99, 47.87, 315.87°)
OKLaboklab(29.12% 0.0762 -0.0946)
OKLCHoklch(29.12% 0.121 308.8)
XYZxyz(3.8860, 2.0976, 9.4308)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1158 #2C5811
analogous
#191158 #3D1158 #58114F
triadic
#3D1158 #583D11 #11583D
tetradic
#3D1158 #581911 #2C5811 #114F58
square
#3D1158 #581911 #2C5811 #114F58
split-complementary
#3D1158 #4F5811 #115819
monochromatic
#12051A #190725 #3D1158 #611B8B #8425BF

Accessibility & contrast

On white

14.79
#3D1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3D1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1158
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1158#FFFFFF#000000##FFFFFF
##3D11581.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#392234
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3d1158;
/* rgb */ color: rgb(61, 17, 88);
/* oklch */ color: oklch(29.1% 0.121 308.8);
Tailwind
colors: {
  custom: {
    50: '#765488',
    500: '#3d1158',
    950: '#000000',
  },
}
SCSS
$custom: #3d1158;
$custom-light: #765488;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1158",
  "rgb": {
    "r": 61,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 277.183,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29119,
    "c": 0.12143,
    "h": 308.8
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#3D1158
secondary
#579134
accent
#EA3D7F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3D1158

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

Preview Lab → · Contrast checker → · Palette generator →

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