#3D258E#3D258E

#3D258E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.162 H 285.7°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#3D258E
RGBrgb(61, 37, 142)
HSLhsl(254, 59%, 35%)
HSVhsv(254, 74%, 56%)
CMYKcmyk(57%, 73.9%, 0%, 44.3%)
CIE-LABlab(24.54, 39.41, -54.21)
CIE-LCHlch(24.54, 67.03, 306.02°)
OKLaboklab(36.68% 0.0439 -0.156)
OKLCHoklch(36.68% 0.162 285.7)
XYZxyz(7.4670, 4.2678, 26.0162)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D258E #768E25
analogous
#25428E #3D258E #71258E
triadic
#3D258E #8E3D25 #258E3D
tetradic
#3D258E #8E2542 #768E25 #258E71
square
#3D258E #8E2542 #768E25 #258E71
split-complementary
#3D258E #8E7125 #428E25
monochromatic
#130C2D #28185D #3D258E #5232BF #755AD4

Accessibility & contrast

On white

11.33
#3D258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3D258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D258E
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D258E#FFFFFF#000000##FFFFFF
##3D258E1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#174157
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d258e;
/* rgb */ color: rgb(61, 37, 142);
/* oklch */ color: oklch(36.7% 0.162 285.7);
Tailwind
colors: {
  custom: {
    50: '#7c62b0',
    500: '#3d258e',
    950: '#000000',
  },
}
SCSS
$custom: #3d258e;
$custom-light: #7c62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d258e",
  "rgb": {
    "r": 61,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 253.714,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3668,
    "c": 0.16206,
    "h": 285.7
  },
  "luminance": 0.04268
}

Semantic roles & 50–950 ramp

primary
#3D258E
secondary
#A2B956
accent
#E246BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3D258E

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

Preview Lab → · Contrast checker → · Palette generator →

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