#3B23A5#3B23A5

#3B23A5 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.192 H 280.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#3B23A5
RGBrgb(59, 35, 165)
HSLhsl(251, 65%, 39%)
HSVhsv(251, 79%, 65%)
CMYKcmyk(64.2%, 78.8%, 0%, 35.3%)
CIE-LABlab(26.30, 47.21, -65.42)
CIE-LCHlch(26.30, 80.68, 305.81°)
OKLaboklab(38.57% 0.0363 -0.1888)
OKLCHoklch(38.57% 0.192 280.9)
XYZxyz(9.1941, 4.8478, 36.0412)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B23A5 #8DA523
analogous
#234CA5 #3B23A5 #7C23A5
triadic
#3B23A5 #A53B23 #23A53B
tetradic
#3B23A5 #A5234C #8DA523 #23A57C
square
#3B23A5 #A5234C #8DA523 #23A57C
split-complementary
#3B23A5 #A57C23 #4CA523
monochromatic
#170E40 #291873 #3B23A5 #5032D3 #7B64DE

Accessibility & contrast

On white

10.66
#3B23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3B23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B23A5
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B23A5#FFFFFF#000000##FFFFFF
##3B23A51.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3b23a5;
/* rgb */ color: rgb(59, 35, 165);
/* oklch */ color: oklch(38.6% 0.192 280.9);
Tailwind
colors: {
  custom: {
    50: '#7f62c1',
    500: '#3b23a5',
    950: '#000000',
  },
}
SCSS
$custom: #3b23a5;
$custom-light: #7f62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b23a5",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 251.077,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38568,
    "c": 0.19228,
    "h": 280.9
  },
  "luminance": 0.04848
}

Semantic roles & 50–950 ramp

primary
#3B23A5
secondary
#B1C460
accent
#E840C9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3B23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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