#3B238E#3B238E

#3B238E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.165 H 285.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#3B238E
RGBrgb(59, 35, 142)
HSLhsl(253, 60%, 35%)
HSVhsv(253, 75%, 56%)
CMYKcmyk(58.5%, 75.4%, 0%, 44.3%)
CIE-LABlab(23.95, 40.20, -55.19)
CIE-LCHlch(23.95, 68.28, 306.07°)
OKLaboklab(36.22% 0.0425 -0.1589)
OKLCHoklch(36.22% 0.165 285)
XYZxyz(7.2857, 4.0844, 25.9904)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B238E #768E23
analogous
#23418E #3B238E #71238E
triadic
#3B238E #8E3B23 #238E3B
tetradic
#3B238E #8E2341 #768E23 #238E71
square
#3B238E #8E2341 #768E23 #238E71
split-complementary
#3B238E #8E7123 #418E23
monochromatic
#120B2C #27175D #3B238E #4F2FBF #7356D5

Accessibility & contrast

On white

11.56
#3B238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3B238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B238E
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B238E#FFFFFF#000000##FFFFFF
##3B238E1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#104156
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b238e;
/* rgb */ color: rgb(59, 35, 142);
/* oklch */ color: oklch(36.2% 0.165 285.0);
Tailwind
colors: {
  custom: {
    50: '#7b61b0',
    500: '#3b238e',
    950: '#000000',
  },
}
SCSS
$custom: #3b238e;
$custom-light: #7b61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b238e",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 253.458,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36215,
    "c": 0.1645,
    "h": 285
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

primary
#3B238E
secondary
#A3B953
accent
#E444C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3B238E

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

Preview Lab → · Contrast checker → · Palette generator →

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