#3D127E#3D127E

#3D127E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.162 H 293.0°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#3D127E
RGBrgb(61, 18, 126)
HSLhsl(264, 75%, 28%)
HSVhsv(264, 86%, 49%)
CMYKcmyk(51.6%, 85.7%, 0%, 50.6%)
CIE-LABlab(19.77, 43.88, -52.01)
CIE-LCHlch(19.77, 68.04, 310.15°)
OKLaboklab(32.86% 0.0633 -0.1494)
OKLCHoklch(32.86% 0.162 293)
XYZxyz(5.9056, 2.9309, 19.9892)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D127E #537E12
analogous
#121D7E #3D127E #73127E
triadic
#3D127E #7E3D12 #127E3D
tetradic
#3D127E #7E121D #537E12 #127E73
square
#3D127E #7E121D #537E12 #127E73
split-complementary
#3D127E #7E7312 #1D7E12
monochromatic
#0D041B #230A48 #3D127E #571AB4 #732AE1

Accessibility & contrast

On white

13.24
#3D127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3D127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D127E
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D127E#FFFFFF#000000##FFFFFF
##3D127E1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#28334A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d127e;
/* rgb */ color: rgb(61, 18, 126);
/* oklch */ color: oklch(32.9% 0.162 293.0);
Tailwind
colors: {
  custom: {
    50: '#7b57a4',
    500: '#3d127e',
    950: '#000000',
  },
}
SCSS
$custom: #3d127e;
$custom-light: #7b57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d127e",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 263.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32859,
    "c": 0.16223,
    "h": 293
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#3D127E
secondary
#83B438
accent
#F236A7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3D127E

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

Preview Lab → · Contrast checker → · Palette generator →

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