#3C166B#3C166B

#3C166B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.137 H 298.3°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#3C166B
RGBrgb(60, 22, 107)
HSLhsl(267, 66%, 25%)
HSVhsv(267, 79%, 42%)
CMYKcmyk(43.9%, 79.4%, 0%, 58%)
CIE-LABlab(18.35, 36.81, -42.10)
CIE-LCHlch(18.35, 55.92, 311.17°)
OKLaboklab(31.27% 0.0648 -0.1204)
OKLCHoklch(31.27% 0.137 298.3)
XYZxyz(4.8035, 2.5959, 14.1551)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C166B #456B16
analogous
#161A6B #3C166B #66166B
triadic
#3C166B #6B3C16 #166B3C
tetradic
#3C166B #6B161A #456B16 #166B66
square
#3C166B #6B161A #456B16 #166B66
split-complementary
#3C166B #6B6616 #1A6B16
monochromatic
#0E0519 #200C38 #3C166B #58209E #752BD1

Accessibility & contrast

On white

13.82
#3C166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3C166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C166B
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C166B#FFFFFF#000000##FFFFFF
##3C166B1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#302C3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c166b;
/* rgb */ color: rgb(60, 22, 107);
/* oklch */ color: oklch(31.3% 0.137 298.3);
Tailwind
colors: {
  custom: {
    50: '#775896',
    500: '#3c166b',
    950: '#000000',
  },
}
SCSS
$custom: #3c166b;
$custom-light: #775896;
$custom-dark: #000000;
JSON
{
  "hex": "#3c166b",
  "rgb": {
    "r": 60,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 266.824,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31271,
    "c": 0.13675,
    "h": 298.3
  },
  "luminance": 0.02596
}

Semantic roles & 50–950 ramp

primary
#3C166B
secondary
#74A13B
accent
#E93F9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3C166B

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

Preview Lab → · Contrast checker → · Palette generator →

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