#3E166A#3E166A

#3E166A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.136 H 300.2°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#3E166A
RGBrgb(62, 22, 106)
HSLhsl(269, 66%, 25%)
HSVhsv(269, 79%, 42%)
CMYKcmyk(41.5%, 79.2%, 0%, 58.4%)
CIE-LABlab(18.53, 36.91, -41.13)
CIE-LCHlch(18.53, 55.26, 311.91°)
OKLaboklab(31.44% 0.0683 -0.1175)
OKLCHoklch(31.44% 0.136 300.2)
XYZxyz(4.8744, 2.6385, 13.8854)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E166A #426A16
analogous
#16186A #3E166A #68166A
triadic
#3E166A #6A3E16 #166A3E
tetradic
#3E166A #6A1618 #426A16 #166A68
square
#3E166A #6A1618 #426A16 #166A68
split-complementary
#3E166A #6A6816 #186A16
monochromatic
#0F0519 #200B37 #3E166A #5C219D #792BCF

Accessibility & contrast

On white

13.75
#3E166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3E166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E166A
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E166A#FFFFFF#000000##FFFFFF
##3E166A1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002D68
Tritanopia (blue-blind)
#342C3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e166a;
/* rgb */ color: rgb(62, 22, 106);
/* oklch */ color: oklch(31.4% 0.136 300.2);
Tailwind
colors: {
  custom: {
    50: '#785895',
    500: '#3e166a',
    950: '#000000',
  },
}
SCSS
$custom: #3e166a;
$custom-light: #785895;
$custom-dark: #000000;
JSON
{
  "hex": "#3e166a",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 268.571,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31435,
    "c": 0.1359,
    "h": 300.2
  },
  "luminance": 0.02639
}

Semantic roles & 50–950 ramp

primary
#3E166A
secondary
#70A03B
accent
#E93F98
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E166A

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

Preview Lab → · Contrast checker → · Palette generator →

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