#3A255C#3A255C

#3A255C is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.0% C 0.095 H 298.5°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#3A255C
RGBrgb(58, 37, 92)
HSLhsl(263, 43%, 25%)
HSVhsv(263, 60%, 36%)
CMYKcmyk(37%, 59.8%, 0%, 63.9%)
CIE-LABlab(20.03, 23.40, -29.52)
CIE-LCHlch(20.03, 37.67, 308.40°)
OKLaboklab(32.04% 0.0454 -0.0836)
OKLCHoklch(32.04% 0.095 298.5)
XYZxyz(4.3378, 2.9953, 10.4728)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A255C #475C25
analogous
#252B5C #3A255C #55255C
triadic
#3A255C #5C3A25 #255C3A
tetradic
#3A255C #5C252B #475C25 #255C55
square
#3A255C #5C252B #475C25 #255C55
split-complementary
#3A255C #5C5525 #2B5C25
monochromatic
#0E0916 #1E1330 #3A255C #563788 #7148B3

Accessibility & contrast

On white

13.13
#3A255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3A255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A255C
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A255C#FFFFFF#000000##FFFFFF
##3A255C1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D305E
Deuteranopia (green-blind)
#14305B
Tritanopia (blue-blind)
#33303C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a255c;
/* rgb */ color: rgb(58, 37, 92);
/* oklch */ color: oklch(32.0% 0.095 298.5);
Tailwind
colors: {
  custom: {
    50: '#73608a',
    500: '#3a255c',
    950: '#000000',
  },
}
SCSS
$custom: #3a255c;
$custom-light: #73608a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a255c",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 262.909,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32038,
    "c": 0.09512,
    "h": 298.5
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#3A255C
secondary
#768F4D
accent
#D255A3
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050C
muted
#7B797D

Preview Lab

Preview with #3A255C

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

Preview Lab → · Contrast checker → · Palette generator →

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