#3C187B#3C187B

#3C187B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.153 H 292.4°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#3C187B
RGBrgb(60, 24, 123)
HSLhsl(262, 67%, 29%)
HSVhsv(262, 80%, 48%)
CMYKcmyk(51.2%, 80.5%, 0%, 51.8%)
CIE-LABlab(20.22, 40.33, -49.35)
CIE-LCHlch(20.22, 63.74, 309.25°)
OKLaboklab(33.05% 0.0583 -0.1417)
OKLCHoklch(33.05% 0.153 292.4)
XYZxyz(5.7643, 3.0438, 19.0188)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C187B #577B18
analogous
#18267B #3C187B #6E187B
triadic
#3C187B #7B3C18 #187B3C
tetradic
#3C187B #7B1826 #577B18 #187B6E
square
#3C187B #7B1826 #577B18 #187B6E
split-complementary
#3C187B #7B6E18 #267B18
monochromatic
#0C051A #230E48 #3C187B #5522AE #7136D8

Accessibility & contrast

On white

13.05
#3C187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C187B
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C187B#FFFFFF#000000##FFFFFF
##3C187B1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#273449
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3c187b;
/* rgb */ color: rgb(60, 24, 123);
/* oklch */ color: oklch(33.1% 0.153 292.4);
Tailwind
colors: {
  custom: {
    50: '#795aa2',
    500: '#3c187b',
    950: '#000000',
  },
}
SCSS
$custom: #3c187b;
$custom-light: #795aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3c187b",
  "rgb": {
    "r": 60,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 261.818,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33052,
    "c": 0.15324,
    "h": 292.4
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#3C187B
secondary
#87B03F
accent
#EA3EAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C187B

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

Preview Lab → · Contrast checker → · Palette generator →

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