#3E166B#3E166B

#3E166B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.137 H 299.8°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#3E166B
RGBrgb(62, 22, 107)
HSLhsl(268, 66%, 25%)
HSVhsv(268, 79%, 42%)
CMYKcmyk(42.1%, 79.4%, 0%, 58%)
CIE-LABlab(18.62, 37.18, -41.63)
CIE-LCHlch(18.62, 55.82, 311.77°)
OKLaboklab(31.53% 0.0681 -0.119)
OKLCHoklch(31.53% 0.137 299.8)
XYZxyz(4.9267, 2.6594, 14.1608)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E166B #436B16
analogous
#16196B #3E166B #68166B
triadic
#3E166B #6B3E16 #166B3E
tetradic
#3E166B #6B1619 #436B16 #166B68
square
#3E166B #6B1619 #436B16 #166B68
split-complementary
#3E166B #6B6816 #196B16
monochromatic
#0F0519 #210C38 #3E166B #5B209E #792BD1

Accessibility & contrast

On white

13.71
#3E166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E166B
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E166B#FFFFFF#000000##FFFFFF
##3E166B1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e166b;
/* rgb */ color: rgb(62, 22, 107);
/* oklch */ color: oklch(31.5% 0.137 299.8);
Tailwind
colors: {
  custom: {
    50: '#785896',
    500: '#3e166b',
    950: '#000000',
  },
}
SCSS
$custom: #3e166b;
$custom-light: #785896;
$custom-dark: #000000;
JSON
{
  "hex": "#3e166b",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 268.235,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31527,
    "c": 0.13705,
    "h": 299.8
  },
  "luminance": 0.02659
}

Semantic roles & 50–950 ramp

primary
#3E166B
secondary
#71A13B
accent
#E93F99
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E166B

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

Preview Lab → · Contrast checker → · Palette generator →

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