#3F137E#3F137E

#3F137E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.161 H 294.1°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#3F137E
RGBrgb(63, 19, 126)
HSLhsl(265, 74%, 28%)
HSVhsv(265, 85%, 49%)
CMYKcmyk(50%, 84.9%, 0%, 50.6%)
CIE-LABlab(20.16, 43.76, -51.35)
CIE-LCHlch(20.16, 67.46, 310.44°)
OKLaboklab(33.19% 0.066 -0.1474)
OKLCHoklch(33.19% 0.161 294.1)
XYZxyz(6.0476, 3.0287, 20.0006)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F137E #527E13
analogous
#131C7E #3F137E #74137E
triadic
#3F137E #7E3F13 #137E3F
tetradic
#3F137E #7E131C #527E13 #137E74
square
#3F137E #7E131C #527E13 #137E74
split-complementary
#3F137E #7E7413 #1C7E13
monochromatic
#0D041B #240B49 #3F137E #5A1BB3 #762CDF

Accessibility & contrast

On white

13.08
#3F137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3F137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F137E
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F137E#FFFFFF#000000##FFFFFF
##3F137E1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#2B334A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3f137e;
/* rgb */ color: rgb(63, 19, 126);
/* oklch */ color: oklch(33.2% 0.161 294.1);
Tailwind
colors: {
  custom: {
    50: '#7c58a4',
    500: '#3f137e',
    950: '#000000',
  },
}
SCSS
$custom: #3f137e;
$custom-light: #7c58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f137e",
  "rgb": {
    "r": 63,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 264.673,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33189,
    "c": 0.16147,
    "h": 294.1
  },
  "luminance": 0.03029
}

Semantic roles & 50–950 ramp

primary
#3F137E
secondary
#81B439
accent
#F037A4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F137E

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

Preview Lab → · Contrast checker → · Palette generator →

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