#3D127F#3D127F

#3D127F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.163 H 292.7°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#3D127F
RGBrgb(61, 18, 127)
HSLhsl(264, 75%, 28%)
HSVhsv(264, 86%, 50%)
CMYKcmyk(52%, 85.8%, 0%, 50.2%)
CIE-LABlab(19.87, 44.15, -52.47)
CIE-LCHlch(19.87, 68.57, 310.08°)
OKLaboklab(32.96% 0.0629 -0.1507)
OKLCHoklch(32.96% 0.163 292.7)
XYZxyz(5.9705, 2.9568, 20.3307)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D127F #547F12
analogous
#121D7F #3D127F #73127F
triadic
#3D127F #7F3D12 #127F3D
tetradic
#3D127F #7F121D #547F12 #127F73
square
#3D127F #7F121D #547F12 #127F73
split-complementary
#3D127F #7F7312 #1D7F12
monochromatic
#0D041B #230A49 #3D127F #571AB5 #722BE1

Accessibility & contrast

On white

13.20
#3D127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D127F
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D127F#FFFFFF#000000##FFFFFF
##3D127F1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#27334A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d127f;
/* rgb */ color: rgb(61, 18, 127);
/* oklch */ color: oklch(33.0% 0.163 292.7);
Tailwind
colors: {
  custom: {
    50: '#7b57a5',
    500: '#3d127f',
    950: '#000000',
  },
}
SCSS
$custom: #3d127f;
$custom-light: #7b57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d127f",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 263.67,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32963,
    "c": 0.16332,
    "h": 292.7
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#3D127F
secondary
#84B538
accent
#F236A8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3D127F

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

Preview Lab → · Contrast checker → · Palette generator →

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