#3A126A#3A126A

#3A126A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.140 H 297.9°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#3A126A
RGBrgb(58, 18, 106)
HSLhsl(267, 71%, 24%)
HSVhsv(267, 83%, 42%)
CMYKcmyk(45.3%, 83%, 0%, 58.4%)
CIE-LABlab(17.33, 38.03, -43.11)
CIE-LCHlch(17.33, 57.49, 311.42°)
OKLaboklab(30.47% 0.0655 -0.1234)
OKLCHoklch(30.47% 0.14 297.9)
XYZxyz(4.5621, 2.3727, 13.8505)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A126A #426A12
analogous
#12166A #3A126A #66126A
triadic
#3A126A #6A3A12 #126A3A
tetradic
#3A126A #6A1216 #426A12 #126A66
square
#3A126A #6A1216 #426A12 #126A66
split-complementary
#3A126A #6A6612 #166A12
monochromatic
#0E041A #1D0936 #3A126A #571B9E #7324D3

Accessibility & contrast

On white

14.24
#3A126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3A126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A126A
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A126A#FFFFFF#000000##FFFFFF
##3A126A1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#2E2A3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a126a;
/* rgb */ color: rgb(58, 18, 106);
/* oklch */ color: oklch(30.5% 0.140 297.9);
Tailwind
colors: {
  custom: {
    50: '#765595',
    500: '#3a126a',
    950: '#000000',
  },
}
SCSS
$custom: #3a126a;
$custom-light: #765595;
$custom-dark: #000000;
JSON
{
  "hex": "#3a126a",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 267.273,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30471,
    "c": 0.13973,
    "h": 297.9
  },
  "luminance": 0.02373
}

Semantic roles & 50–950 ramp

primary
#3A126A
secondary
#71A236
accent
#EE3A9C
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A126A

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

Preview Lab → · Contrast checker → · Palette generator →

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