#3D125E#3D125E

#3D125E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.127 H 305.6°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#3D125E
RGBrgb(61, 18, 94)
HSLhsl(274, 68%, 22%)
HSVhsv(274, 81%, 37%)
CMYKcmyk(35.1%, 80.9%, 0%, 63.1%)
CIE-LABlab(16.66, 35.42, -36.26)
CIE-LCHlch(16.66, 50.69, 314.33°)
OKLaboklab(29.76% 0.0738 -0.1032)
OKLCHoklch(29.76% 0.127 305.6)
XYZxyz(4.1607, 2.2329, 10.7993)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D125E #335E12
analogous
#17125E #3D125E #5E1259
triadic
#3D125E #5E3D12 #125E3D
tetradic
#3D125E #5E1712 #335E12 #12595E
square
#3D125E #5E1712 #335E12 #12595E
split-complementary
#3D125E #595E12 #125E17
monochromatic
#11051A #1C082B #3D125E #5E1C91 #8026C5

Accessibility & contrast

On white

14.52
#3D125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3D125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D125E
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D125E#FFFFFF#000000##FFFFFF
##3D125E1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#372537
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3d125e;
/* rgb */ color: rgb(61, 18, 94);
/* oklch */ color: oklch(29.8% 0.127 305.6);
Tailwind
colors: {
  custom: {
    50: '#76558c',
    500: '#3d125e',
    950: '#000000',
  },
}
SCSS
$custom: #3d125e;
$custom-light: #76558c;
$custom-dark: #000000;
JSON
{
  "hex": "#3d125e",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 273.947,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29755,
    "c": 0.12685,
    "h": 305.6
  },
  "luminance": 0.02233
}

Semantic roles & 50–950 ramp

primary
#3D125E
secondary
#609635
accent
#EB3D88
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D125E

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

Preview Lab → · Contrast checker → · Palette generator →

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