#3A266E#3A266E

#3A266E is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.6% C 0.119 H 291.5°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#3A266E
RGBrgb(58, 38, 110)
HSLhsl(257, 49%, 29%)
HSVhsv(257, 65%, 43%)
CMYKcmyk(47.3%, 65.5%, 0%, 56.9%)
CIE-LABlab(21.62, 28.28, -38.73)
CIE-LCHlch(21.62, 47.95, 306.14°)
OKLaboklab(33.64% 0.0436 -0.1106)
OKLCHoklch(33.64% 0.119 291.5)
XYZxyz(5.2517, 3.4114, 15.1306)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A266E #5A6E26
analogous
#26366E #3A266E #5E266E
triadic
#3A266E #6E3A26 #266E3A
tetradic
#3A266E #6E2636 #5A6E26 #266E5E
square
#3A266E #6E2636 #5A6E26 #266E5E
split-complementary
#3A266E #6E5E26 #366E26
monochromatic
#0C0817 #221641 #3A266E #52369B #6D4DC1

Accessibility & contrast

On white

12.48
#3A266E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3A266E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A266E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A266E#FFFFFF#000000##FFFFFF
##3A266E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#00326C
Tritanopia (blue-blind)
#2B3746
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a266e;
/* rgb */ color: rgb(58, 38, 110);
/* oklch */ color: oklch(33.6% 0.119 291.5);
Tailwind
colors: {
  custom: {
    50: '#756198',
    500: '#3a266e',
    950: '#000000',
  },
}
SCSS
$custom: #3a266e;
$custom-light: #756198;
$custom-dark: #000000;
JSON
{
  "hex": "#3a266e",
  "rgb": {
    "r": 58,
    "g": 38,
    "b": 110
  },
  "hsl": {
    "h": 256.667,
    "s": 48.649,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33638,
    "c": 0.1189,
    "h": 291.5
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#3A266E
secondary
#8AA14F
accent
#D850B2
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A266E

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

Preview Lab → · Contrast checker → · Palette generator →

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