#3A296E#3A296E

#3A296E is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.2% C 0.114 H 290.4°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#3A296E
RGBrgb(58, 41, 110)
HSLhsl(255, 46%, 30%)
HSVhsv(255, 63%, 43%)
CMYKcmyk(47.3%, 62.7%, 0%, 56.9%)
CIE-LABlab(22.34, 26.37, -37.56)
CIE-LCHlch(22.34, 45.90, 305.07°)
OKLaboklab(34.16% 0.0398 -0.1072)
OKLCHoklch(34.16% 0.114 290.4)
XYZxyz(5.3515, 3.6110, 15.1639)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A296E #5D6E29
analogous
#293A6E #3A296E #5D296E
triadic
#3A296E #6E3A29 #296E3A
tetradic
#3A296E #6E293A #5D6E29 #296E5D
square
#3A296E #6E293A #5D6E29 #296E5D
split-complementary
#3A296E #6E5D29 #3A6E29
monochromatic
#0C0816 #221841 #3A296E #523A9B #6D53BF

Accessibility & contrast

On white

12.19
#3A296E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A296E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A296E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A296E#FFFFFF#000000##FFFFFF
##3A296E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#2A3947
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a296e;
/* rgb */ color: rgb(58, 41, 110);
/* oklch */ color: oklch(34.2% 0.114 290.4);
Tailwind
colors: {
  custom: {
    50: '#756398',
    500: '#3a296e',
    950: '#000000',
  },
}
SCSS
$custom: #3a296e;
$custom-light: #756398;
$custom-dark: #000000;
JSON
{
  "hex": "#3a296e",
  "rgb": {
    "r": 58,
    "g": 41,
    "b": 110
  },
  "hsl": {
    "h": 254.783,
    "s": 45.695,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34164,
    "c": 0.11437,
    "h": 290.4
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#3A296E
secondary
#8DA053
accent
#D552B5
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A296E

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

Preview Lab → · Contrast checker → · Palette generator →

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