#3D1F98#3D1F98

#3D1F98 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.180 H 284.7°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#3D1F98
RGBrgb(61, 31, 152)
HSLhsl(255, 66%, 36%)
HSVhsv(255, 80%, 60%)
CMYKcmyk(59.9%, 79.6%, 0%, 40.4%)
CIE-LABlab(24.45, 45.52, -60.54)
CIE-LCHlch(24.45, 75.75, 306.94°)
OKLaboklab(36.92% 0.0457 -0.1745)
OKLCHoklch(36.92% 0.18 284.7)
XYZxyz(8.0802, 4.2386, 30.0920)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D1F98 #7A981F
analogous
#1F3D98 #3D1F98 #791F98
triadic
#3D1F98 #983D1F #1F983D
tetradic
#3D1F98 #981F3D #7A981F #1F9879
square
#3D1F98 #981F3D #7A981F #1F9879
split-complementary
#3D1F98 #98791F #3D981F
monochromatic
#140A32 #291565 #3D1F98 #5129CB #7755DC

Accessibility & contrast

On white

11.36
#3D1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3D1F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D1F98
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D1F98#FFFFFF#000000##FFFFFF
##3D1F981.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#05435B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d1f98;
/* rgb */ color: rgb(61, 31, 152);
/* oklch */ color: oklch(36.9% 0.180 284.7);
Tailwind
colors: {
  custom: {
    50: '#7e5fb7',
    500: '#3d1f98',
    950: '#000000',
  },
}
SCSS
$custom: #3d1f98;
$custom-light: #7e5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3d1f98",
  "rgb": {
    "r": 61,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 254.876,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36916,
    "c": 0.18035,
    "h": 284.7
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#3D1F98
secondary
#A5C053
accent
#E93FBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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