#3B23A7#3B23A7

#3B23A7 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.195 H 280.6°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#3B23A7
RGBrgb(59, 35, 167)
HSLhsl(251, 65%, 40%)
HSVhsv(251, 79%, 65%)
CMYKcmyk(64.7%, 79%, 0%, 34.5%)
CIE-LABlab(26.51, 47.81, -66.28)
CIE-LCHlch(26.51, 81.73, 305.80°)
OKLaboklab(38.78% 0.0358 -0.1913)
OKLCHoklch(38.78% 0.195 280.6)
XYZxyz(9.3775, 4.9212, 37.0074)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B23A7 #8FA723
analogous
#234DA7 #3B23A7 #7D23A7
triadic
#3B23A7 #A73B23 #23A73B
tetradic
#3B23A7 #A7234D #8FA723 #23A77D
square
#3B23A7 #A7234D #8FA723 #23A77D
split-complementary
#3B23A7 #A77D23 #4DA723
monochromatic
#170E42 #291874 #3B23A7 #5033D4 #7C66DF

Accessibility & contrast

On white

10.58
#3B23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3B23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B23A7
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B23A7#FFFFFF#000000##FFFFFF
##3B23A71.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3b23a7;
/* rgb */ color: rgb(59, 35, 167);
/* oklch */ color: oklch(38.8% 0.195 280.6);
Tailwind
colors: {
  custom: {
    50: '#8062c2',
    500: '#3b23a7',
    950: '#000000',
  },
}
SCSS
$custom: #3b23a7;
$custom-light: #8062c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b23a7",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 250.909,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38779,
    "c": 0.19463,
    "h": 280.6
  },
  "luminance": 0.04922
}

Semantic roles & 50–950 ramp

primary
#3B23A7
secondary
#B2C461
accent
#E83FCA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3B23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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