#3B126A#3B126A

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

Color values

HEX#3B126A
RGBrgb(59, 18, 106)
HSLhsl(268, 71%, 24%)
HSVhsv(268, 83%, 42%)
CMYKcmyk(44.3%, 83%, 0%, 58.4%)
CIE-LABlab(17.47, 38.20, -42.88)
CIE-LCHlch(17.47, 57.43, 311.70°)
OKLaboklab(30.6% 0.0671 -0.1227)
OKLCHoklch(30.6% 0.14 298.7)
XYZxyz(4.6208, 2.4030, 13.8532)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B126A #416A12
analogous
#12156A #3B126A #67126A
triadic
#3B126A #6A3B12 #126A3B
tetradic
#3B126A #6A1215 #416A12 #126A67
square
#3B126A #6A1215 #416A12 #126A67
split-complementary
#3B126A #6A6712 #156A12
monochromatic
#0F041A #1E0936 #3B126A #581B9E #7524D3

Accessibility & contrast

On white

14.18
#3B126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3B126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B126A
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B126A#FFFFFF#000000##FFFFFF
##3B126A1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b126a;
/* rgb */ color: rgb(59, 18, 106);
/* oklch */ color: oklch(30.6% 0.140 298.7);
Tailwind
colors: {
  custom: {
    50: '#775695',
    500: '#3b126a',
    950: '#000000',
  },
}
SCSS
$custom: #3b126a;
$custom-light: #775695;
$custom-dark: #000000;
JSON
{
  "hex": "#3b126a",
  "rgb": {
    "r": 59,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 267.955,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.306,
    "c": 0.13986,
    "h": 298.7
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#3B126A
secondary
#70A236
accent
#EE3A9A
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3B126A

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

Preview Lab → · Contrast checker → · Palette generator →

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