#3F166B#3F166B

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

Color values

HEX#3F166B
RGBrgb(63, 22, 107)
HSLhsl(269, 66%, 25%)
HSVhsv(269, 79%, 42%)
CMYKcmyk(41.1%, 79.4%, 0%, 58%)
CIE-LABlab(18.77, 37.37, -41.40)
CIE-LCHlch(18.77, 55.77, 312.07°)
OKLaboklab(31.66% 0.0697 -0.1182)
OKLCHoklch(31.66% 0.137 300.5)
XYZxyz(4.9900, 2.6921, 14.1638)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F166B #426B16
analogous
#16186B #3F166B #69166B
triadic
#3F166B #6B3F16 #166B3F
tetradic
#3F166B #6B1618 #426B16 #166B69
square
#3F166B #6B1618 #426B16 #166B69
split-complementary
#3F166B #6B6916 #186B16
monochromatic
#0F0519 #210C38 #3F166B #5D209E #7B2BD1

Accessibility & contrast

On white

13.65
#3F166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3F166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F166B
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F166B#FFFFFF#000000##FFFFFF
##3F166B1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f166b;
/* rgb */ color: rgb(63, 22, 107);
/* oklch */ color: oklch(31.7% 0.137 300.5);
Tailwind
colors: {
  custom: {
    50: '#795896',
    500: '#3f166b',
    950: '#000000',
  },
}
SCSS
$custom: #3f166b;
$custom-light: #795896;
$custom-dark: #000000;
JSON
{
  "hex": "#3f166b",
  "rgb": {
    "r": 63,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 268.941,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31657,
    "c": 0.13722,
    "h": 300.5
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#3F166B
secondary
#70A13B
accent
#E93F97
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3F166B

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

Preview Lab → · Contrast checker → · Palette generator →

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