#3A256E#3A256E

#3A256E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.120 H 291.8°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#3A256E
RGBrgb(58, 37, 110)
HSLhsl(257, 50%, 29%)
HSVhsv(257, 66%, 43%)
CMYKcmyk(47.3%, 66.4%, 0%, 56.9%)
CIE-LABlab(21.39, 28.90, -39.11)
CIE-LCHlch(21.39, 48.63, 306.47°)
OKLaboklab(33.47% 0.0448 -0.1118)
OKLCHoklch(33.47% 0.12 291.8)
XYZxyz(5.2202, 3.3483, 15.1201)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A256E #596E25
analogous
#25356E #3A256E #5F256E
triadic
#3A256E #6E3A25 #256E3A
tetradic
#3A256E #6E2535 #596E25 #256E5F
square
#3A256E #6E2535 #596E25 #256E5F
split-complementary
#3A256E #6E5F25 #356E25
monochromatic
#0C0817 #221640 #3A256E #52349C #6D4BC2

Accessibility & contrast

On white

12.58
#3A256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3A256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A256E
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A256E#FFFFFF#000000##FFFFFF
##3A256E1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#2B3646
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a256e;
/* rgb */ color: rgb(58, 37, 110);
/* oklch */ color: oklch(33.5% 0.120 291.8);
Tailwind
colors: {
  custom: {
    50: '#756198',
    500: '#3a256e',
    950: '#000000',
  },
}
SCSS
$custom: #3a256e;
$custom-light: #756198;
$custom-dark: #000000;
JSON
{
  "hex": "#3a256e",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 257.26,
    "s": 49.66,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33468,
    "c": 0.12039,
    "h": 291.8
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#3A256E
secondary
#89A14E
accent
#D94FB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A256E

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

Preview Lab → · Contrast checker → · Palette generator →

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