#3A255E#3A255E

#3A255E is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.2% C 0.098 H 297.6°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#3A255E
RGBrgb(58, 37, 94)
HSLhsl(262, 44%, 26%)
HSVhsv(262, 61%, 37%)
CMYKcmyk(38.3%, 60.6%, 0%, 63.1%)
CIE-LABlab(20.17, 24.00, -30.62)
CIE-LCHlch(20.17, 38.90, 308.09°)
OKLaboklab(32.19% 0.0454 -0.0868)
OKLCHoklch(32.19% 0.098 297.6)
XYZxyz(4.4264, 3.0308, 10.9393)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A255E #495E25
analogous
#252C5E #3A255E #56255E
triadic
#3A255E #5E3A25 #255E3A
tetradic
#3A255E #5E252C #495E25 #255E56
square
#3A255E #5E252C #495E25 #255E56
split-complementary
#3A255E #5E5625 #2C5E25
monochromatic
#0E0916 #1F1432 #3A255E #55368A #7048B6

Accessibility & contrast

On white

13.07
#3A255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3A255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A255E
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A255E#FFFFFF#000000##FFFFFF
##3A255E1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3160
Deuteranopia (green-blind)
#12305D
Tritanopia (blue-blind)
#32313D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a255e;
/* rgb */ color: rgb(58, 37, 94);
/* oklch */ color: oklch(32.2% 0.098 297.6);
Tailwind
colors: {
  custom: {
    50: '#73608c',
    500: '#3a255e',
    950: '#000000',
  },
}
SCSS
$custom: #3a255e;
$custom-light: #73608c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a255e",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 262.105,
    "s": 43.511,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32188,
    "c": 0.09798,
    "h": 297.6
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

primary
#3A255E
secondary
#78914D
accent
#D355A5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050C
muted
#7B797D

Preview Lab

Preview with #3A255E

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

Preview Lab → · Contrast checker → · Palette generator →

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