#3D258B#3D258B

#3D258B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.158 H 286.4°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3D258B
RGBrgb(61, 37, 139)
HSLhsl(254, 58%, 35%)
HSVhsv(254, 73%, 55%)
CMYKcmyk(56.1%, 73.4%, 0%, 45.5%)
CIE-LABlab(24.25, 38.49, -52.81)
CIE-LCHlch(24.25, 65.35, 306.08°)
OKLaboklab(36.39% 0.0446 -0.1519)
OKLCHoklch(36.39% 0.158 286.4)
XYZxyz(7.2448, 4.1789, 24.8460)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D258B #738B25
analogous
#25408B #3D258B #70258B
triadic
#3D258B #8B3D25 #258B3D
tetradic
#3D258B #8B2540 #738B25 #258B70
square
#3D258B #8B2540 #738B25 #258B70
split-complementary
#3D258B #8B7025 #408B25
monochromatic
#130B2A #28185B #3D258B #5232BB #7558D3

Accessibility & contrast

On white

11.44
#3D258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3D258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D258B
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D258B#FFFFFF#000000##FFFFFF
##3D258B1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#1B4055
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d258b;
/* rgb */ color: rgb(61, 37, 139);
/* oklch */ color: oklch(36.4% 0.158 286.4);
Tailwind
colors: {
  custom: {
    50: '#7b62ae',
    500: '#3d258b',
    950: '#000000',
  },
}
SCSS
$custom: #3d258b;
$custom-light: #7b62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3d258b",
  "rgb": {
    "r": 61,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 254.118,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36392,
    "c": 0.15831,
    "h": 286.4
  },
  "luminance": 0.04179
}

Semantic roles & 50–950 ramp

primary
#3D258B
secondary
#A0B755
accent
#E147BD
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D258B

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

Preview Lab → · Contrast checker → · Palette generator →

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