#3F145A#3F145A

#3F145A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.120 H 308.9°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#3F145A
RGBrgb(63, 20, 90)
HSLhsl(277, 64%, 22%)
HSVhsv(277, 78%, 35%)
CMYKcmyk(30%, 77.8%, 0%, 64.7%)
CIE-LABlab(16.97, 33.90, -33.08)
CIE-LCHlch(16.97, 47.37, 315.70°)
OKLaboklab(29.93% 0.0756 -0.0938)
OKLCHoklch(29.93% 0.12 308.9)
XYZxyz(4.1451, 2.2953, 9.8956)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F145A #2F5A14
analogous
#1C145A #3F145A #5A1452
triadic
#3F145A #5A3F14 #145A3F
tetradic
#3F145A #5A1C14 #2F5A14 #14525A
square
#3F145A #5A1C14 #2F5A14 #14525A
split-complementary
#3F145A #525A14 #145A1C
monochromatic
#120619 #1C0928 #3F145A #621F8C #852ABE

Accessibility & contrast

On white

14.39
#3F145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3F145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F145A
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F145A#FFFFFF#000000##FFFFFF
##3F145A1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#032A59
Tritanopia (blue-blind)
#3B2435
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3f145a;
/* rgb */ color: rgb(63, 20, 90);
/* oklch */ color: oklch(29.9% 0.120 308.9);
Tailwind
colors: {
  custom: {
    50: '#775689',
    500: '#3f145a',
    950: '#000000',
  },
}
SCSS
$custom: #3f145a;
$custom-light: #775689;
$custom-dark: #000000;
JSON
{
  "hex": "#3f145a",
  "rgb": {
    "r": 63,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 276.857,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29928,
    "c": 0.12044,
    "h": 308.9
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#3F145A
secondary
#5B9238
accent
#E74181
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3F145A

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

Preview Lab → · Contrast checker → · Palette generator →

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