#3D258F#3D258F

#3D258F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.163 H 285.5°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3D258F
RGBrgb(61, 37, 143)
HSLhsl(254, 59%, 35%)
HSVhsv(254, 74%, 56%)
CMYKcmyk(57.3%, 74.1%, 0%, 43.9%)
CIE-LABlab(24.63, 39.72, -54.68)
CIE-LCHlch(24.63, 67.58, 306.00°)
OKLaboklab(36.78% 0.0437 -0.1574)
OKLCHoklch(36.78% 0.163 285.5)
XYZxyz(7.5425, 4.2980, 26.4134)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D258F #778F25
analogous
#25428F #3D258F #72258F
triadic
#3D258F #8F3D25 #258F3D
tetradic
#3D258F #8F2542 #778F25 #258F72
square
#3D258F #8F2542 #778F25 #258F72
split-complementary
#3D258F #8F7225 #428F25
monochromatic
#140C2E #28185E #3D258F #5232C0 #765AD4

Accessibility & contrast

On white

11.29
#3D258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3D258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D258F
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D258F#FFFFFF#000000##FFFFFF
##3D258F1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#164258
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d258f;
/* rgb */ color: rgb(61, 37, 143);
/* oklch */ color: oklch(36.8% 0.163 285.5);
Tailwind
colors: {
  custom: {
    50: '#7c62b1',
    500: '#3d258f',
    950: '#000000',
  },
}
SCSS
$custom: #3d258f;
$custom-light: #7c62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d258f",
  "rgb": {
    "r": 61,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 253.585,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36777,
    "c": 0.16331,
    "h": 285.5
  },
  "luminance": 0.04298
}

Semantic roles & 50–950 ramp

primary
#3D258F
secondary
#A3B957
accent
#E246BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3D258F

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

Preview Lab → · Contrast checker → · Palette generator →

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