#3B238D#3B238D

#3B238D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.163 H 285.2°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#3B238D
RGBrgb(59, 35, 141)
HSLhsl(254, 60%, 35%)
HSVhsv(254, 75%, 55%)
CMYKcmyk(58.2%, 75.2%, 0%, 44.7%)
CIE-LABlab(23.85, 39.90, -54.73)
CIE-LCHlch(23.85, 67.73, 306.09°)
OKLaboklab(36.12% 0.0428 -0.1576)
OKLCHoklch(36.12% 0.163 285.2)
XYZxyz(7.2109, 4.0545, 25.5968)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B238D #758D23
analogous
#23408D #3B238D #70238D
triadic
#3B238D #8D3B23 #238D3B
tetradic
#3B238D #8D2340 #758D23 #238D70
square
#3B238D #8D2340 #758D23 #238D70
split-complementary
#3B238D #8D7023 #408D23
monochromatic
#120B2B #26175C #3B238D #502FBE #7255D5

Accessibility & contrast

On white

11.60
#3B238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3B238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B238D
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B238D#FFFFFF#000000##FFFFFF
##3B238D1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#124056
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b238d;
/* rgb */ color: rgb(59, 35, 141);
/* oklch */ color: oklch(36.1% 0.163 285.2);
Tailwind
colors: {
  custom: {
    50: '#7b61af',
    500: '#3b238d',
    950: '#000000',
  },
}
SCSS
$custom: #3b238d;
$custom-light: #7b61af;
$custom-dark: #000000;
JSON
{
  "hex": "#3b238d",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 253.585,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36116,
    "c": 0.16326,
    "h": 285.2
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#3B238D
secondary
#A2B953
accent
#E344BF
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3B238D

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

Preview Lab → · Contrast checker → · Palette generator →

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