#3F185E#3F185E

#3F185E is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.8% C 0.120 H 306.0°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#3F185E
RGBrgb(63, 24, 94)
HSLhsl(273, 59%, 23%)
HSVhsv(273, 74%, 37%)
CMYKcmyk(33%, 74.5%, 0%, 63.1%)
CIE-LABlab(18.00, 32.93, -34.08)
CIE-LCHlch(18.00, 47.39, 314.02°)
OKLaboklab(30.77% 0.0703 -0.0967)
OKLCHoklch(30.77% 0.12 306)
XYZxyz(4.3965, 2.5182, 10.8420)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F185E #375E18
analogous
#1C185E #3F185E #5E185A
triadic
#3F185E #5E3F18 #185E3F
tetradic
#3F185E #5E1C18 #375E18 #185A5E
square
#3F185E #5E1C18 #375E18 #185A5E
split-complementary
#3F185E #5A5E18 #185E1C
monochromatic
#100618 #1E0C2D #3F185E #60248F #8031C0

Accessibility & contrast

On white

13.97
#3F185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3F185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F185E
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F185E#FFFFFF#000000##FFFFFF
##3F185E1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#022C5D
Tritanopia (blue-blind)
#3A2839
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3f185e;
/* rgb */ color: rgb(63, 24, 94);
/* oklch */ color: oklch(30.8% 0.120 306.0);
Tailwind
colors: {
  custom: {
    50: '#77588c',
    500: '#3f185e',
    950: '#000000',
  },
}
SCSS
$custom: #3f185e;
$custom-light: #77588c;
$custom-dark: #000000;
JSON
{
  "hex": "#3f185e",
  "rgb": {
    "r": 63,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 273.429,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30766,
    "c": 0.11956,
    "h": 306
  },
  "luminance": 0.02518
}

Semantic roles & 50–950 ramp

primary
#3F185E
secondary
#64943D
accent
#E3458B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F185E

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

Preview Lab → · Contrast checker → · Palette generator →

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