#3D258C#3D258C

#3D258C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.160 H 286.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3D258C
RGBrgb(61, 37, 140)
HSLhsl(254, 58%, 35%)
HSVhsv(254, 74%, 55%)
CMYKcmyk(56.4%, 73.6%, 0%, 45.1%)
CIE-LABlab(24.35, 38.80, -53.28)
CIE-LCHlch(24.35, 65.91, 306.06°)
OKLaboklab(36.49% 0.0444 -0.1533)
OKLCHoklch(36.49% 0.16 286.1)
XYZxyz(7.3182, 4.2083, 25.2325)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D258C #748C25
analogous
#25408C #3D258C #71258C
triadic
#3D258C #8C3D25 #258C3D
tetradic
#3D258C #8C2540 #748C25 #258C71
square
#3D258C #8C2540 #748C25 #258C71
split-complementary
#3D258C #8C7125 #408C25
monochromatic
#130B2B #28185C #3D258C #5232BC #7558D3

Accessibility & contrast

On white

11.40
#3D258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D258C
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D258C#FFFFFF#000000##FFFFFF
##3D258C1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#1A4156
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d258c;
/* rgb */ color: rgb(61, 37, 140);
/* oklch */ color: oklch(36.5% 0.160 286.1);
Tailwind
colors: {
  custom: {
    50: '#7c62af',
    500: '#3d258c',
    950: '#000000',
  },
}
SCSS
$custom: #3d258c;
$custom-light: #7c62af;
$custom-dark: #000000;
JSON
{
  "hex": "#3d258c",
  "rgb": {
    "r": 61,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 253.981,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36488,
    "c": 0.15956,
    "h": 286.1
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#3D258C
secondary
#A1B855
accent
#E146BD
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D258C

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

Preview Lab → · Contrast checker → · Palette generator →

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