#3A126F#3A126F

#3A126F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.145 H 296.0°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#3A126F
RGBrgb(58, 18, 111)
HSLhsl(266, 72%, 25%)
HSVhsv(266, 84%, 44%)
CMYKcmyk(47.7%, 83.8%, 0%, 56.5%)
CIE-LABlab(17.83, 39.39, -45.57)
CIE-LCHlch(17.83, 60.23, 310.84°)
OKLaboklab(30.96% 0.0638 -0.1306)
OKLCHoklch(30.96% 0.145 296)
XYZxyz(4.8297, 2.4797, 15.2600)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A126F #476F12
analogous
#12196F #3A126F #68126F
triadic
#3A126F #6F3A12 #126F3A
tetradic
#3A126F #6F1219 #476F12 #126F68
square
#3A126F #6F1219 #476F12 #126F68
split-complementary
#3A126F #6F6812 #196F12
monochromatic
#0E041A #1E093A #3A126F #561BA4 #7123D8

Accessibility & contrast

On white

14.04
#3A126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3A126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A126F
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A126F#FFFFFF#000000##FFFFFF
##3A126F1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#2B2D41
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a126f;
/* rgb */ color: rgb(58, 18, 111);
/* oklch */ color: oklch(31.0% 0.145 296.0);
Tailwind
colors: {
  custom: {
    50: '#775699',
    500: '#3a126f',
    950: '#000000',
  },
}
SCSS
$custom: #3a126f;
$custom-light: #775699;
$custom-dark: #000000;
JSON
{
  "hex": "#3a126f",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 265.806,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30965,
    "c": 0.14537,
    "h": 296
  },
  "luminance": 0.0248
}

Semantic roles & 50–950 ramp

primary
#3A126F
secondary
#76A637
accent
#EF39A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A126F

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

Preview Lab → · Contrast checker → · Palette generator →

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