#3A23A6#3A23A6

#3A23A6 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.194 H 280.3°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#3A23A6
RGBrgb(58, 35, 166)
HSLhsl(251, 65%, 39%)
HSVhsv(251, 79%, 65%)
CMYKcmyk(65.1%, 78.9%, 0%, 34.9%)
CIE-LABlab(26.32, 47.40, -66.00)
CIE-LCHlch(26.32, 81.26, 305.69°)
OKLaboklab(38.59% 0.0346 -0.1905)
OKLCHoklch(38.59% 0.194 280.3)
XYZxyz(9.2267, 4.8541, 36.5197)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A23A6 #8FA623
analogous
#234EA6 #3A23A6 #7B23A6
triadic
#3A23A6 #A63A23 #23A63A
tetradic
#3A23A6 #A6234E #8FA623 #23A67B
square
#3A23A6 #A6234E #8FA623 #23A67B
split-complementary
#3A23A6 #A67B23 #4EA623
monochromatic
#170E41 #281873 #3A23A6 #4F32D4 #7A65DF

Accessibility & contrast

On white

10.65
#3A23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A23A6
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A23A6#FFFFFF#000000##FFFFFF
##3A23A61.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a23a6;
/* rgb */ color: rgb(58, 35, 166);
/* oklch */ color: oklch(38.6% 0.194 280.3);
Tailwind
colors: {
  custom: {
    50: '#7f62c2',
    500: '#3a23a6',
    950: '#000000',
  },
}
SCSS
$custom: #3a23a6;
$custom-light: #7f62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a23a6",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 250.534,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38591,
    "c": 0.19363,
    "h": 280.3
  },
  "luminance": 0.04855
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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