#3B187D#3B187D

#3B187D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.156 H 291.1°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#3B187D
RGBrgb(59, 24, 125)
HSLhsl(261, 68%, 29%)
HSVhsv(261, 81%, 49%)
CMYKcmyk(52.8%, 80.8%, 0%, 51%)
CIE-LABlab(20.30, 40.75, -50.50)
CIE-LCHlch(20.30, 64.89, 308.90°)
OKLaboklab(33.14% 0.0561 -0.1451)
OKLCHoklch(33.14% 0.156 291.1)
XYZxyz(5.8309, 3.0635, 19.6821)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B187D #5A7D18
analogous
#18287D #3B187D #6E187D
triadic
#3B187D #7D3B18 #187D3B
tetradic
#3B187D #7D1828 #5A7D18 #187D6E
square
#3B187D #7D1828 #5A7D18 #187D6E
split-complementary
#3B187D #7D6E18 #287D18
monochromatic
#0C051A #230E4A #3B187D #5322B0 #6F37D9

Accessibility & contrast

On white

13.02
#3B187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3B187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B187D
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B187D#FFFFFF#000000##FFFFFF
##3B187D1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#24354A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3b187d;
/* rgb */ color: rgb(59, 24, 125);
/* oklch */ color: oklch(33.1% 0.156 291.1);
Tailwind
colors: {
  custom: {
    50: '#795aa4',
    500: '#3b187d',
    950: '#000000',
  },
}
SCSS
$custom: #3b187d;
$custom-light: #795aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b187d",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 260.792,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3314,
    "c": 0.15556,
    "h": 291.1
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#3B187D
secondary
#8AB23F
accent
#EB3DAF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B187D

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

Preview Lab → · Contrast checker → · Palette generator →

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