#3B23AB#3B23AB

#3B23AB is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.199 H 280.0°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#3B23AB
RGBrgb(59, 35, 171)
HSLhsl(251, 66%, 40%)
HSVhsv(251, 80%, 67%)
CMYKcmyk(65.5%, 79.5%, 0%, 32.9%)
CIE-LABlab(26.94, 49.01, -67.99)
CIE-LCHlch(26.94, 83.81, 305.79°)
OKLaboklab(39.21% 0.0346 -0.1963)
OKLCHoklch(39.21% 0.199 280)
XYZxyz(9.7530, 5.0714, 38.9851)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B23AB #93AB23
analogous
#234FAB #3B23AB #7F23AB
triadic
#3B23AB #AB3B23 #23AB3B
tetradic
#3B23AB #AB234F #93AB23 #23AB7F
square
#3B23AB #AB234F #93AB23 #23AB7F
split-complementary
#3B23AB #AB7F23 #4FAB23
monochromatic
#180E45 #291978 #3B23AB #5235D6 #7D68E0

Accessibility & contrast

On white

10.42
#3B23AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3B23AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B23AB
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B23AB#FFFFFF#000000##FFFFFF
##3B23AB1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AF
Deuteranopia (green-blind)
#003AA9
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3b23ab;
/* rgb */ color: rgb(59, 35, 171);
/* oklch */ color: oklch(39.2% 0.199 280.0);
Tailwind
colors: {
  custom: {
    50: '#8162c5',
    500: '#3b23ab',
    950: '#000000',
  },
}
SCSS
$custom: #3b23ab;
$custom-light: #8162c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b23ab",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 171
  },
  "hsl": {
    "h": 250.588,
    "s": 66.019,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39205,
    "c": 0.19931,
    "h": 280
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#3B23AB
secondary
#B5C664
accent
#E93FCB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3B23AB

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

Preview Lab → · Contrast checker → · Palette generator →

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