#3D255E#3D255E

#3D255E is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.5% C 0.099 H 300.4°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#3D255E
RGBrgb(61, 37, 94)
HSLhsl(265, 44%, 26%)
HSVhsv(265, 61%, 37%)
CMYKcmyk(35.1%, 60.6%, 0%, 63.1%)
CIE-LABlab(20.53, 24.83, -30.02)
CIE-LCHlch(20.53, 38.95, 309.60°)
OKLaboklab(32.54% 0.0499 -0.0849)
OKLCHoklch(32.54% 0.099 300.4)
XYZxyz(4.6059, 3.1234, 10.9477)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D255E #465E25
analogous
#25295E #3D255E #59255E
triadic
#3D255E #5E3D25 #255E3D
tetradic
#3D255E #5E2529 #465E25 #255E59
square
#3D255E #5E2529 #465E25 #255E59
split-complementary
#3D255E #5E5925 #295E25
monochromatic
#0E0916 #211432 #3D255E #59368A #7648B6

Accessibility & contrast

On white

12.93
#3D255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3D255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D255E
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D255E#FFFFFF#000000##FFFFFF
##3D255E1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3160
Deuteranopia (green-blind)
#15315D
Tritanopia (blue-blind)
#36303D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d255e;
/* rgb */ color: rgb(61, 37, 94);
/* oklch */ color: oklch(32.5% 0.099 300.4);
Tailwind
colors: {
  custom: {
    50: '#75608c',
    500: '#3d255e',
    950: '#000000',
  },
}
SCSS
$custom: #3d255e;
$custom-light: #75608c;
$custom-dark: #000000;
JSON
{
  "hex": "#3d255e",
  "rgb": {
    "r": 61,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 265.263,
    "s": 43.511,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3254,
    "c": 0.09851,
    "h": 300.4
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#3D255E
secondary
#75914D
accent
#D3559E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050C
muted
#7B797D

Preview Lab

Preview with #3D255E

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

Preview Lab → · Contrast checker → · Palette generator →

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