#3F187C#3F187C

#3F187C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.155 H 294.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#3F187C
RGBrgb(63, 24, 124)
HSLhsl(263, 68%, 29%)
HSVhsv(263, 81%, 49%)
CMYKcmyk(49.2%, 80.6%, 0%, 51.4%)
CIE-LABlab(20.69, 41.08, -49.20)
CIE-LCHlch(20.69, 64.09, 309.86°)
OKLaboklab(33.5% 0.0629 -0.1411)
OKLCHoklch(33.5% 0.155 294)
XYZxyz(6.0136, 3.1651, 19.3589)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F187C #557C18
analogous
#18237C #3F187C #71187C
triadic
#3F187C #7C3F18 #187C3F
tetradic
#3F187C #7C1823 #557C18 #187C71
square
#3F187C #7C1823 #557C18 #187C71
split-complementary
#3F187C #7C7118 #237C18
monochromatic
#0D051A #250E49 #3F187C #5922AF #7536D8

Accessibility & contrast

On white

12.86
#3F187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3F187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F187C
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F187C#FFFFFF#000000##FFFFFF
##3F187C1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#2C344A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3f187c;
/* rgb */ color: rgb(63, 24, 124);
/* oklch */ color: oklch(33.5% 0.155 294.0);
Tailwind
colors: {
  custom: {
    50: '#7b5aa3',
    500: '#3f187c',
    950: '#000000',
  },
}
SCSS
$custom: #3f187c;
$custom-light: #7b5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f187c",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 263.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33499,
    "c": 0.15451,
    "h": 294
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#3F187C
secondary
#84B13F
accent
#EA3DA7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3F187C

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

Preview Lab → · Contrast checker → · Palette generator →

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