#3A267A#3A267A

#3A267A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.7% C 0.135 H 288.2°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#3A267A
RGBrgb(58, 38, 122)
HSLhsl(254, 53%, 31%)
HSVhsv(254, 69%, 48%)
CMYKcmyk(52.5%, 68.9%, 0%, 52.2%)
CIE-LABlab(22.62, 32.06, -44.80)
CIE-LCHlch(22.62, 55.09, 305.59°)
OKLaboklab(34.68% 0.0422 -0.1285)
OKLCHoklch(34.68% 0.135 288.2)
XYZxyz(5.9499, 3.6906, 18.8074)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A267A #667A26
analogous
#263C7A #3A267A #64267A
triadic
#3A267A #7A3A26 #267A3A
tetradic
#3A267A #7A263C #667A26 #267A64
square
#3A267A #7A263C #667A26 #267A64
split-complementary
#3A267A #7A6426 #3C7A26
monochromatic
#0E091D #24174B #3A267A #5035A9 #6E51C9

Accessibility & contrast

On white

12.08
#3A267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3A267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A267A
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A267A#FFFFFF#000000##FFFFFF
##3A267A1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#233B4C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a267a;
/* rgb */ color: rgb(58, 38, 122);
/* oklch */ color: oklch(34.7% 0.135 288.2);
Tailwind
colors: {
  custom: {
    50: '#7762a1',
    500: '#3a267a',
    950: '#000000',
  },
}
SCSS
$custom: #3a267a;
$custom-light: #7762a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a267a",
  "rgb": {
    "r": 58,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 254.286,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34676,
    "c": 0.13523,
    "h": 288.2
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#3A267A
secondary
#96AC50
accent
#DC4CBA
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3A267A

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

Preview Lab → · Contrast checker → · Palette generator →

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