#3F166E#3F166E

#3F166E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.141 H 299.3°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#3F166E
RGBrgb(63, 22, 110)
HSLhsl(268, 67%, 26%)
HSVhsv(268, 80%, 43%)
CMYKcmyk(42.7%, 80%, 0%, 56.9%)
CIE-LABlab(19.04, 38.17, -42.90)
CIE-LCHlch(19.04, 57.43, 311.66°)
OKLaboklab(31.93% 0.0688 -0.1226)
OKLCHoklch(31.93% 0.141 299.3)
XYZxyz(5.1506, 2.7563, 15.0095)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F166E #456E16
analogous
#16196E #3F166E #6B166E
triadic
#3F166E #6E3F16 #166E3F
tetradic
#3F166E #6E1619 #456E16 #166E6B
square
#3F166E #6E1619 #456E16 #166E6B
split-complementary
#3F166E #6E6B16 #196E16
monochromatic
#0F051A #220C3B #3F166E #5C20A1 #792AD4

Accessibility & contrast

On white

13.54
#3F166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F166E
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F166E#FFFFFF#000000##FFFFFF
##3F166E1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#342D41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3f166e;
/* rgb */ color: rgb(63, 22, 110);
/* oklch */ color: oklch(31.9% 0.141 299.3);
Tailwind
colors: {
  custom: {
    50: '#795898',
    500: '#3f166e',
    950: '#000000',
  },
}
SCSS
$custom: #3f166e;
$custom-light: #795898;
$custom-dark: #000000;
JSON
{
  "hex": "#3f166e",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 267.955,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31934,
    "c": 0.14064,
    "h": 299.3
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#3F166E
secondary
#73A43C
accent
#EA3E9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3F166E

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

Preview Lab → · Contrast checker → · Palette generator →

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