#3B127F#3B127F

#3B127F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.163 H 291.4°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#3B127F
RGBrgb(59, 18, 127)
HSLhsl(263, 75%, 28%)
HSVhsv(263, 86%, 50%)
CMYKcmyk(53.5%, 85.8%, 0%, 50.2%)
CIE-LABlab(19.62, 43.89, -52.89)
CIE-LCHlch(19.62, 68.73, 309.68°)
OKLaboklab(32.73% 0.0596 -0.152)
OKLCHoklch(32.73% 0.163 291.4)
XYZxyz(5.8496, 2.8945, 20.3250)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B127F #567F12
analogous
#121F7F #3B127F #71127F
triadic
#3B127F #7F3B12 #127F3B
tetradic
#3B127F #7F121F #567F12 #127F71
square
#3B127F #7F121F #567F12 #127F71
split-complementary
#3B127F #7F7112 #1F7F12
monochromatic
#0C041B #220A49 #3B127F #541AB5 #6F2BE1

Accessibility & contrast

On white

13.30
#3B127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3B127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B127F
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B127F#FFFFFF#000000##FFFFFF
##3B127F1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#23334A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3b127f;
/* rgb */ color: rgb(59, 18, 127);
/* oklch */ color: oklch(32.7% 0.163 291.4);
Tailwind
colors: {
  custom: {
    50: '#7a57a5',
    500: '#3b127f',
    950: '#000000',
  },
}
SCSS
$custom: #3b127f;
$custom-light: #7a57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b127f",
  "rgb": {
    "r": 59,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 262.569,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32732,
    "c": 0.16329,
    "h": 291.4
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#3B127F
secondary
#86B538
accent
#F236AB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3B127F

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

Preview Lab → · Contrast checker → · Palette generator →

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