#3A23A8#3A23A8

#3A23A8 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.196 H 280.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#3A23A8
RGBrgb(58, 35, 168)
HSLhsl(250, 66%, 40%)
HSVhsv(250, 79%, 66%)
CMYKcmyk(65.5%, 79.2%, 0%, 34.1%)
CIE-LABlab(26.53, 48.01, -66.86)
CIE-LCHlch(26.53, 82.31, 305.68°)
OKLaboklab(38.8% 0.034 -0.193)
OKLCHoklch(38.8% 0.196 280)
XYZxyz(9.4116, 4.9280, 37.4934)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A23A8 #91A823
analogous
#234FA8 #3A23A8 #7D23A8
triadic
#3A23A8 #A83A23 #23A83A
tetradic
#3A23A8 #A8234F #91A823 #23A87D
square
#3A23A8 #A8234F #91A823 #23A87D
split-complementary
#3A23A8 #A87D23 #4FA823
monochromatic
#170E43 #291875 #3A23A8 #4F34D5 #7B66DF

Accessibility & contrast

On white

10.58
#3A23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A23A8
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A23A8#FFFFFF#000000##FFFFFF
##3A23A81.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a23a8;
/* rgb */ color: rgb(58, 35, 168);
/* oklch */ color: oklch(38.8% 0.196 280.0);
Tailwind
colors: {
  custom: {
    50: '#8062c3',
    500: '#3a23a8',
    950: '#000000',
  },
}
SCSS
$custom: #3a23a8;
$custom-light: #8062c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a23a8",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 250.376,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38803,
    "c": 0.19598,
    "h": 280
  },
  "luminance": 0.04929
}

Semantic roles & 50–950 ramp

primary
#3A23A8
secondary
#B4C562
accent
#E83FCB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3A23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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