#3D126A#3D126A

#3D126A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.140 H 300.1°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#3D126A
RGBrgb(61, 18, 106)
HSLhsl(269, 71%, 24%)
HSVhsv(269, 83%, 42%)
CMYKcmyk(42.5%, 83%, 0%, 58.4%)
CIE-LABlab(17.76, 38.54, -42.40)
CIE-LCHlch(17.76, 57.30, 312.27°)
OKLaboklab(30.86% 0.0704 -0.1212)
OKLCHoklch(30.86% 0.14 300.1)
XYZxyz(4.7416, 2.4653, 13.8589)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D126A #3F6A12
analogous
#12136A #3D126A #69126A
triadic
#3D126A #6A3D12 #126A3D
tetradic
#3D126A #6A1213 #3F6A12 #126A69
square
#3D126A #6A1213 #3F6A12 #126A69
split-complementary
#3D126A #6A6912 #136A12
monochromatic
#0F041A #1F0936 #3D126A #5B1B9E #7924D3

Accessibility & contrast

On white

14.07
#3D126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3D126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D126A
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D126A#FFFFFF#000000##FFFFFF
##3D126A1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#322A3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3d126a;
/* rgb */ color: rgb(61, 18, 106);
/* oklch */ color: oklch(30.9% 0.140 300.1);
Tailwind
colors: {
  custom: {
    50: '#785695',
    500: '#3d126a',
    950: '#000000',
  },
}
SCSS
$custom: #3d126a;
$custom-light: #785695;
$custom-dark: #000000;
JSON
{
  "hex": "#3d126a",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 269.318,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30862,
    "c": 0.14016,
    "h": 300.1
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#3D126A
secondary
#6DA236
accent
#EE3A96
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3D126A

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

Preview Lab → · Contrast checker → · Palette generator →

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