#3B258E#3B258E

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

Color values

HEX#3B258E
RGBrgb(59, 37, 142)
HSLhsl(253, 59%, 35%)
HSVhsv(253, 74%, 56%)
CMYKcmyk(58.5%, 73.9%, 0%, 44.3%)
CIE-LABlab(24.34, 39.11, -54.55)
CIE-LCHlch(24.34, 67.12, 305.64°)
OKLaboklab(36.49% 0.0409 -0.157)
OKLCHoklch(36.49% 0.162 284.6)
XYZxyz(7.3462, 4.2055, 26.0106)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B258E #788E25
analogous
#25448E #3B258E #6F258E
triadic
#3B258E #8E3B25 #258E3B
tetradic
#3B258E #8E2544 #788E25 #258E6F
square
#3B258E #8E2544 #788E25 #258E6F
split-complementary
#3B258E #8E6F25 #448E25
monochromatic
#130C2D #27185D #3B258E #4F32BF #735AD4

Accessibility & contrast

On white

11.41
#3B258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B258E
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B258E#FFFFFF#000000##FFFFFF
##3B258E1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b258e;
/* rgb */ color: rgb(59, 37, 142);
/* oklch */ color: oklch(36.5% 0.162 284.6);
Tailwind
colors: {
  custom: {
    50: '#7b62b0',
    500: '#3b258e',
    950: '#000000',
  },
}
SCSS
$custom: #3b258e;
$custom-light: #7b62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b258e",
  "rgb": {
    "r": 59,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 252.571,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36492,
    "c": 0.16229,
    "h": 284.6
  },
  "luminance": 0.04206
}

Semantic roles & 50–950 ramp

primary
#3B258E
secondary
#A4B956
accent
#E246C1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3B258E

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

Preview Lab → · Contrast checker → · Palette generator →

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