#3A23A7#3A23A7

#3A23A7 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.195 H 280.1°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#3A23A7
RGBrgb(58, 35, 167)
HSLhsl(250, 65%, 40%)
HSVhsv(250, 79%, 65%)
CMYKcmyk(65.3%, 79%, 0%, 34.5%)
CIE-LABlab(26.42, 47.70, -66.43)
CIE-LCHlch(26.42, 81.78, 305.68°)
OKLaboklab(38.7% 0.0343 -0.1918)
OKLCHoklch(38.7% 0.195 280.1)
XYZxyz(9.3188, 4.8909, 37.0047)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A23A7 #90A723
analogous
#234EA7 #3A23A7 #7C23A7
triadic
#3A23A7 #A73A23 #23A73A
tetradic
#3A23A7 #A7234E #90A723 #23A77C
square
#3A23A7 #A7234E #90A723 #23A77C
split-complementary
#3A23A7 #A77C23 #4EA723
monochromatic
#170E42 #281874 #3A23A7 #4F33D4 #7B66DF

Accessibility & contrast

On white

10.61
#3A23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3A23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A23A7
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A23A7#FFFFFF#000000##FFFFFF
##3A23A71.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a23a7;
/* rgb */ color: rgb(58, 35, 167);
/* oklch */ color: oklch(38.7% 0.195 280.1);
Tailwind
colors: {
  custom: {
    50: '#7f62c2',
    500: '#3a23a7',
    950: '#000000',
  },
}
SCSS
$custom: #3a23a7;
$custom-light: #7f62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a23a7",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 250.455,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38697,
    "c": 0.19481,
    "h": 280.1
  },
  "luminance": 0.04892
}

Semantic roles & 50–950 ramp

primary
#3A23A7
secondary
#B3C461
accent
#E83FCB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #3A23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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