#3B23A3#3B23A3

#3B23A3 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.190 H 281.2°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3B23A3
RGBrgb(59, 35, 163)
HSLhsl(251, 65%, 39%)
HSVhsv(251, 79%, 64%)
CMYKcmyk(63.8%, 78.5%, 0%, 36.1%)
CIE-LABlab(26.09, 46.61, -64.56)
CIE-LCHlch(26.09, 79.63, 305.83°)
OKLaboklab(38.36% 0.0369 -0.1863)
OKLCHoklch(38.36% 0.19 281.2)
XYZxyz(9.0134, 4.7755, 35.0900)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B23A3 #8BA323
analogous
#234BA3 #3B23A3 #7B23A3
triadic
#3B23A3 #A33B23 #23A33B
tetradic
#3B23A3 #A3234B #8BA323 #23A37B
square
#3B23A3 #A3234B #8BA323 #23A37B
split-complementary
#3B23A3 #A37B23 #4BA323
monochromatic
#170D3E #291871 #3B23A3 #4F31D3 #7A63DD

Accessibility & contrast

On white

10.74
#3B23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3B23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B23A3
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B23A3#FFFFFF#000000##FFFFFF
##3B23A31.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#0039A1
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3b23a3;
/* rgb */ color: rgb(59, 35, 163);
/* oklch */ color: oklch(38.4% 0.190 281.2);
Tailwind
colors: {
  custom: {
    50: '#7f62bf',
    500: '#3b23a3',
    950: '#000000',
  },
}
SCSS
$custom: #3b23a3;
$custom-light: #7f62bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3b23a3",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 251.25,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38358,
    "c": 0.18991,
    "h": 281.2
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#3B23A3
secondary
#B0C35F
accent
#E840C8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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