#3F287C#3F287C

#3F287C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.135 H 290.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#3F287C
RGBrgb(63, 40, 124)
HSLhsl(256, 51%, 32%)
HSVhsv(256, 68%, 49%)
CMYKcmyk(49.2%, 67.7%, 0%, 51.4%)
CIE-LABlab(23.77, 32.49, -44.17)
CIE-LCHlch(23.77, 54.83, 306.33°)
OKLaboklab(35.68% 0.0473 -0.1265)
OKLCHoklch(35.68% 0.135 290.5)
XYZxyz(6.4458, 4.0293, 19.5030)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F287C #657C28
analogous
#283B7C #3F287C #69287C
triadic
#3F287C #7C3F28 #287C3F
tetradic
#3F287C #7C283B #657C28 #287C69
square
#3F287C #7C283B #657C28 #287C69
split-complementary
#3F287C #7C6928 #3B7C28
monochromatic
#100A1F #27194E #3F287C #5737AA #7556C8

Accessibility & contrast

On white

11.63
#3F287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3F287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F287C
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F287C#FFFFFF#000000##FFFFFF
##3F287C1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#2C3C4E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f287c;
/* rgb */ color: rgb(63, 40, 124);
/* oklch */ color: oklch(35.7% 0.135 290.5);
Tailwind
colors: {
  custom: {
    50: '#7a63a3',
    500: '#3f287c',
    950: '#000000',
  },
}
SCSS
$custom: #3f287c;
$custom-light: #7a63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f287c",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 256.429,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35683,
    "c": 0.13502,
    "h": 290.5
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#3F287C
secondary
#95AD52
accent
#DB4DB4
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3F287C

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

Preview Lab → · Contrast checker → · Palette generator →

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