#3A1250#3A1250

#3A1250 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.110 H 310.7°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#3A1250
RGBrgb(58, 18, 80)
HSLhsl(279, 63%, 19%)
HSVhsv(279, 78%, 31%)
CMYKcmyk(27.5%, 77.5%, 0%, 68.6%)
CIE-LABlab(15.02, 31.20, -29.51)
CIE-LCHlch(15.02, 42.95, 316.60°)
OKLaboklab(28.12% 0.0719 -0.0835)
OKLCHoklch(28.12% 0.11 310.7)
XYZxyz(3.4089, 1.9114, 7.7772)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1250 #285012
analogous
#1B1250 #3A1250 #501247
triadic
#3A1250 #503A12 #12503A
tetradic
#3A1250 #501B12 #285012 #124750
square
#3A1250 #501B12 #285012 #124750
split-complementary
#3A1250 #475012 #12501B
monochromatic
#120619 #16071E #3A1250 #5E1D82 #8228B4

Accessibility & contrast

On white

15.19
#3A1250 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3A1250 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1250
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1250#FFFFFF#000000##FFFFFF
##3A12501.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#08264F
Tritanopia (blue-blind)
#37202F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a1250;
/* rgb */ color: rgb(58, 18, 80);
/* oklch */ color: oklch(28.1% 0.110 310.7);
Tailwind
colors: {
  custom: {
    50: '#735481',
    500: '#3a1250',
    950: '#000000',
  },
}
SCSS
$custom: #3a1250;
$custom-light: #735481;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1250",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 80
  },
  "hsl": {
    "h": 278.71,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28118,
    "c": 0.11017,
    "h": 310.7
  },
  "luminance": 0.01911
}

Semantic roles & 50–950 ramp

primary
#3A1250
secondary
#538935
accent
#E6417C
background
#F7F5F7
surface
#EDE8EE
border
#C8C4C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A1250

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

Preview Lab → · Contrast checker → · Palette generator →

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