#3E166F#3E166F

#3E166F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.142 H 298.2°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#3E166F
RGBrgb(62, 22, 111)
HSLhsl(267, 67%, 26%)
HSVhsv(267, 80%, 44%)
CMYKcmyk(44.1%, 80.2%, 0%, 56.5%)
CIE-LABlab(18.99, 38.26, -43.63)
CIE-LCHlch(18.99, 58.03, 311.25°)
OKLaboklab(31.9% 0.0669 -0.1248)
OKLCHoklch(31.9% 0.142 298.2)
XYZxyz(5.1420, 2.7456, 15.2949)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E166F #476F16
analogous
#161B6F #3E166F #6A166F
triadic
#3E166F #6F3E16 #166F3E
tetradic
#3E166F #6F161B #476F16 #166F6A
square
#3E166F #6F161B #476F16 #166F6A
split-complementary
#3E166F #6F6A16 #1B6F16
monochromatic
#0E051A #210C3C #3E166F #5B20A2 #772BD5

Accessibility & contrast

On white

13.56
#3E166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3E166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E166F
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E166F#FFFFFF#000000##FFFFFF
##3E166F1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#322E42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e166f;
/* rgb */ color: rgb(62, 22, 111);
/* oklch */ color: oklch(31.9% 0.142 298.2);
Tailwind
colors: {
  custom: {
    50: '#795899',
    500: '#3e166f',
    950: '#000000',
  },
}
SCSS
$custom: #3e166f;
$custom-light: #795899;
$custom-dark: #000000;
JSON
{
  "hex": "#3e166f",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 266.966,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31901,
    "c": 0.14164,
    "h": 298.2
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#3E166F
secondary
#76A53C
accent
#EA3E9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E166F

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

Preview Lab → · Contrast checker → · Palette generator →

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