#3D126F#3D126F

#3D126F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.146 H 298.2°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#3D126F
RGBrgb(61, 18, 111)
HSLhsl(268, 72%, 25%)
HSVhsv(268, 84%, 44%)
CMYKcmyk(45%, 83.8%, 0%, 56.5%)
CIE-LABlab(18.24, 39.87, -44.87)
CIE-LCHlch(18.24, 60.02, 311.62°)
OKLaboklab(31.35% 0.0688 -0.1285)
OKLCHoklch(31.35% 0.146 298.2)
XYZxyz(5.0093, 2.5723, 15.2684)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D126F #446F12
analogous
#12156F #3D126F #6B126F
triadic
#3D126F #6F3D12 #126F3D
tetradic
#3D126F #6F1215 #446F12 #126F6B
square
#3D126F #6F1215 #446F12 #126F6B
split-complementary
#3D126F #6F6B12 #156F12
monochromatic
#0E041A #20093A #3D126F #5A1BA4 #7723D8

Accessibility & contrast

On white

13.87
#3D126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3D126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D126F
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D126F#FFFFFF#000000##FFFFFF
##3D126F1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#302C41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3d126f;
/* rgb */ color: rgb(61, 18, 111);
/* oklch */ color: oklch(31.3% 0.146 298.2);
Tailwind
colors: {
  custom: {
    50: '#785699',
    500: '#3d126f',
    950: '#000000',
  },
}
SCSS
$custom: #3d126f;
$custom-light: #785699;
$custom-dark: #000000;
JSON
{
  "hex": "#3d126f",
  "rgb": {
    "r": 61,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 267.742,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31346,
    "c": 0.1457,
    "h": 298.2
  },
  "luminance": 0.02572
}

Semantic roles & 50–950 ramp

primary
#3D126F
secondary
#73A637
accent
#EF399B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3D126F

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

Preview Lab → · Contrast checker → · Palette generator →

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