#3B23A2#3B23A2

#3B23A2 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.189 H 281.4°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3B23A2
RGBrgb(59, 35, 162)
HSLhsl(251, 64%, 39%)
HSVhsv(251, 78%, 64%)
CMYKcmyk(63.6%, 78.4%, 0%, 36.5%)
CIE-LABlab(25.98, 46.31, -64.13)
CIE-LCHlch(25.98, 79.10, 305.83°)
OKLaboklab(38.25% 0.0372 -0.185)
OKLCHoklch(38.25% 0.189 281.4)
XYZxyz(8.9242, 4.7398, 34.6200)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B23A2 #8AA223
analogous
#234AA2 #3B23A2 #7A23A2
triadic
#3B23A2 #A23B23 #23A23B
tetradic
#3B23A2 #A2234A #8AA223 #23A27A
square
#3B23A2 #A2234A #8AA223 #23A27A
split-complementary
#3B23A2 #A27A23 #4AA223
monochromatic
#160D3D #291870 #3B23A2 #4F30D2 #7962DD

Accessibility & contrast

On white

10.78
#3B23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3B23A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B23A2
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B23A2#FFFFFF#000000##FFFFFF
##3B23A21.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3b23a2;
/* rgb */ color: rgb(59, 35, 162);
/* oklch */ color: oklch(38.3% 0.189 281.4);
Tailwind
colors: {
  custom: {
    50: '#7f62bf',
    500: '#3b23a2',
    950: '#000000',
  },
}
SCSS
$custom: #3b23a2;
$custom-light: #7f62bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3b23a2",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 251.339,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38253,
    "c": 0.18872,
    "h": 281.4
  },
  "luminance": 0.04741
}

Semantic roles & 50–950 ramp

primary
#3B23A2
secondary
#AFC25E
accent
#E740C8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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