#3B23A8#3B23A8

#3B23A8 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.196 H 280.4°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#3B23A8
RGBrgb(59, 35, 168)
HSLhsl(251, 66%, 40%)
HSVhsv(251, 79%, 66%)
CMYKcmyk(64.9%, 79.2%, 0%, 34.1%)
CIE-LABlab(26.62, 48.11, -66.71)
CIE-LCHlch(26.62, 82.25, 305.80°)
OKLaboklab(38.89% 0.0355 -0.1926)
OKLCHoklch(38.89% 0.196 280.4)
XYZxyz(9.4703, 4.9583, 37.4962)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B23A8 #90A823
analogous
#234EA8 #3B23A8 #7E23A8
triadic
#3B23A8 #A83B23 #23A83B
tetradic
#3B23A8 #A8234E #90A823 #23A87E
square
#3B23A8 #A8234E #90A823 #23A87E
split-complementary
#3B23A8 #A87E23 #4EA823
monochromatic
#170E43 #291875 #3B23A8 #5134D5 #7C66DF

Accessibility & contrast

On white

10.54
#3B23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3B23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B23A8
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B23A8#FFFFFF#000000##FFFFFF
##3B23A81.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3b23a8;
/* rgb */ color: rgb(59, 35, 168);
/* oklch */ color: oklch(38.9% 0.196 280.4);
Tailwind
colors: {
  custom: {
    50: '#8062c3',
    500: '#3b23a8',
    950: '#000000',
  },
}
SCSS
$custom: #3b23a8;
$custom-light: #8062c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b23a8",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 250.827,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38885,
    "c": 0.1958,
    "h": 280.4
  },
  "luminance": 0.04959
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3B23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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