#3B1EA8#3B1EA8

#3B1EA8 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.200 H 281.0°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#3B1EA8
RGBrgb(59, 30, 168)
HSLhsl(253, 70%, 39%)
HSVhsv(253, 82%, 66%)
CMYKcmyk(64.9%, 82.1%, 0%, 34.1%)
CIE-LABlab(25.82, 50.43, -68.03)
CIE-LCHlch(25.82, 84.69, 306.55°)
OKLaboklab(38.33% 0.0381 -0.1963)
OKLCHoklch(38.33% 0.2 281)
XYZxyz(9.3336, 4.6848, 37.4506)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1EA8 #8BA81E
analogous
#1E46A8 #3B1EA8 #801EA8
triadic
#3B1EA8 #A83B1E #1EA83B
tetradic
#3B1EA8 #A81E46 #8BA81E #1EA880
square
#3B1EA8 #A81E46 #8BA81E #1EA880
split-complementary
#3B1EA8 #A8801E #46A81E
monochromatic
#170B40 #291574 #3B1EA8 #4F2AD9 #7A5EE2

Accessibility & contrast

On white

10.84
#3B1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3B1EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1EA8
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1EA8#FFFFFF#000000##FFFFFF
##3B1EA81.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3b1ea8;
/* rgb */ color: rgb(59, 30, 168);
/* oklch */ color: oklch(38.3% 0.200 281.0);
Tailwind
colors: {
  custom: {
    50: '#8060c3',
    500: '#3b1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #3b1ea8;
$custom-light: #8060c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1ea8",
  "rgb": {
    "r": 59,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 252.609,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38332,
    "c": 0.19999,
    "h": 281
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#3B1EA8
secondary
#B0C75B
accent
#ED3BC7
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3B1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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