#3D255B#3D255B

#3D255B is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.3% C 0.094 H 301.9°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#3D255B
RGBrgb(61, 37, 91)
HSLhsl(267, 42%, 25%)
HSVhsv(267, 59%, 36%)
CMYKcmyk(33%, 59.3%, 0%, 64.3%)
CIE-LABlab(20.32, 23.96, -28.36)
CIE-LCHlch(20.32, 37.13, 310.19°)
OKLaboklab(32.32% 0.0498 -0.0801)
OKLCHoklch(32.32% 0.094 301.9)
XYZxyz(4.4739, 3.0706, 10.2525)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D255B #435B25
analogous
#25285B #3D255B #58255B
triadic
#3D255B #5B3D25 #255B3D
tetradic
#3D255B #5B2528 #435B25 #255B58
square
#3D255B #5B2528 #435B25 #255B58
split-complementary
#3D255B #5B5825 #285B25
monochromatic
#0F0916 #20132F #3D255B #5A3787 #7748B2

Accessibility & contrast

On white

13.01
#3D255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3D255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D255B
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D255B#FFFFFF#000000##FFFFFF
##3D255B1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10315D
Deuteranopia (green-blind)
#18315A
Tritanopia (blue-blind)
#37303C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d255b;
/* rgb */ color: rgb(61, 37, 91);
/* oklch */ color: oklch(32.3% 0.094 301.9);
Tailwind
colors: {
  custom: {
    50: '#75608a',
    500: '#3d255b',
    950: '#000000',
  },
}
SCSS
$custom: #3d255b;
$custom-light: #75608a;
$custom-dark: #000000;
JSON
{
  "hex": "#3d255b",
  "rgb": {
    "r": 61,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 266.667,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.32321,
    "c": 0.0943,
    "h": 301.9
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#3D255B
secondary
#728E4D
accent
#D2569B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050B
muted
#7B797C

Preview Lab

Preview with #3D255B

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

Preview Lab → · Contrast checker → · Palette generator →

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