#3D258A#3D258A

#3D258A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.157 H 286.6°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#3D258A
RGBrgb(61, 37, 138)
HSLhsl(254, 58%, 34%)
HSVhsv(254, 73%, 54%)
CMYKcmyk(55.8%, 73.2%, 0%, 45.9%)
CIE-LABlab(24.16, 38.18, -52.34)
CIE-LCHlch(24.16, 64.79, 306.11°)
OKLaboklab(36.3% 0.0448 -0.1505)
OKLCHoklch(36.3% 0.157 286.6)
XYZxyz(7.1721, 4.1498, 24.4629)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D258A #728A25
analogous
#25408A #3D258A #70258A
triadic
#3D258A #8A3D25 #258A3D
tetradic
#3D258A #8A2540 #728A25 #258A70
square
#3D258A #8A2540 #728A25 #258A70
split-complementary
#3D258A #8A7025 #408A25
monochromatic
#120B29 #28185A #3D258A #5232BA #7557D2

Accessibility & contrast

On white

11.48
#3D258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3D258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D258A
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D258A#FFFFFF#000000##FFFFFF
##3D258A1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#1C4055
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d258a;
/* rgb */ color: rgb(61, 37, 138);
/* oklch */ color: oklch(36.3% 0.157 286.6);
Tailwind
colors: {
  custom: {
    50: '#7b62ad',
    500: '#3d258a',
    950: '#000000',
  },
}
SCSS
$custom: #3d258a;
$custom-light: #7b62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3d258a",
  "rgb": {
    "r": 61,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 254.257,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36297,
    "c": 0.15705,
    "h": 286.6
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#3D258A
secondary
#9FB754
accent
#E147BC
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D258A

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

Preview Lab → · Contrast checker → · Palette generator →

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