#3B187F#3B187F

#3B187F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.158 H 290.5°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#3B187F
RGBrgb(59, 24, 127)
HSLhsl(260, 68%, 30%)
HSVhsv(260, 81%, 50%)
CMYKcmyk(53.5%, 81.1%, 0%, 50.2%)
CIE-LABlab(20.50, 41.32, -51.44)
CIE-LCHlch(20.50, 65.98, 308.77°)
OKLaboklab(33.34% 0.0554 -0.1478)
OKLCHoklch(33.34% 0.158 290.5)
XYZxyz(5.9599, 3.1151, 20.3618)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B187F #5C7F18
analogous
#18297F #3B187F #6F187F
triadic
#3B187F #7F3B18 #187F3B
tetradic
#3B187F #7F1829 #5C7F18 #187F6F
square
#3B187F #7F1829 #5C7F18 #187F6F
split-complementary
#3B187F #7F6F18 #297F18
monochromatic
#0C051A #230E4C #3B187F #5322B2 #6F38D9

Accessibility & contrast

On white

12.94
#3B187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3B187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B187F
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B187F#FFFFFF#000000##FFFFFF
##3B187F1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#22364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3b187f;
/* rgb */ color: rgb(59, 24, 127);
/* oklch */ color: oklch(33.3% 0.158 290.5);
Tailwind
colors: {
  custom: {
    50: '#795aa5',
    500: '#3b187f',
    950: '#000000',
  },
}
SCSS
$custom: #3b187f;
$custom-light: #795aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b187f",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 260.388,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33342,
    "c": 0.15789,
    "h": 290.5
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#3B187F
secondary
#8CB33F
accent
#EB3DB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B187F

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

Preview Lab → · Contrast checker → · Palette generator →

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