#3F188E#3F188E

#3F188E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.175 H 288.9°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#3F188E
RGBrgb(63, 24, 142)
HSLhsl(260, 71%, 33%)
HSVhsv(260, 83%, 56%)
CMYKcmyk(55.6%, 83.1%, 0%, 44.3%)
CIE-LABlab(22.52, 46.07, -57.52)
CIE-LCHlch(22.52, 73.70, 308.70°)
OKLaboklab(35.32% 0.0568 -0.1655)
OKLCHoklch(35.32% 0.175 288.9)
XYZxyz(7.2576, 3.6627, 25.9105)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F188E #678E18
analogous
#182C8E #3F188E #7A188E
triadic
#3F188E #8E3F18 #188E3F
tetradic
#3F188E #8E182C #678E18 #188E7A
square
#3F188E #8E182C #678E18 #188E7A
split-complementary
#3F188E #8E7A18 #2C8E18
monochromatic
#110625 #280F5A #3F188E #5621C2 #7641DF

Accessibility & contrast

On white

12.12
#3F188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3F188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F188E
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F188E#FFFFFF#000000##FFFFFF
##3F188E1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#1F3C54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f188e;
/* rgb */ color: rgb(63, 24, 142);
/* oklch */ color: oklch(35.3% 0.175 288.9);
Tailwind
colors: {
  custom: {
    50: '#7e5bb0',
    500: '#3f188e',
    950: '#000000',
  },
}
SCSS
$custom: #3f188e;
$custom-light: #7e5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f188e",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 259.831,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35321,
    "c": 0.17496,
    "h": 288.9
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#3F188E
secondary
#96C042
accent
#EE3AB2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F188E

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

Preview Lab → · Contrast checker → · Palette generator →

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