#3F287D#3F287D

#3F287D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.8% C 0.136 H 290.2°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#3F287D
RGBrgb(63, 40, 125)
HSLhsl(256, 52%, 32%)
HSVhsv(256, 68%, 49%)
CMYKcmyk(49.6%, 68%, 0%, 51%)
CIE-LABlab(23.85, 32.79, -44.67)
CIE-LCHlch(23.85, 55.41, 306.28°)
OKLaboklab(35.77% 0.0471 -0.1279)
OKLCHoklch(35.77% 0.136 290.2)
XYZxyz(6.5093, 4.0548, 19.8377)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F287D #667D28
analogous
#283C7D #3F287D #69287D
triadic
#3F287D #7D3F28 #287D3F
tetradic
#3F287D #7D283C #667D28 #287D69
square
#3F287D #7D283C #667D28 #287D69
split-complementary
#3F287D #7D6928 #3C7D28
monochromatic
#100A20 #28194F #3F287D #5637AB #7556C9

Accessibility & contrast

On white

11.60
#3F287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F287D
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F287D#FFFFFF#000000##FFFFFF
##3F287D1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#2B3D4F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3f287d;
/* rgb */ color: rgb(63, 40, 125);
/* oklch */ color: oklch(35.8% 0.136 290.2);
Tailwind
colors: {
  custom: {
    50: '#7a63a3',
    500: '#3f287d',
    950: '#000000',
  },
}
SCSS
$custom: #3f287d;
$custom-light: #7a63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f287d",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 256.235,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35769,
    "c": 0.13634,
    "h": 290.2
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#3F287D
secondary
#95AE53
accent
#DB4DB5
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3F287D

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

Preview Lab → · Contrast checker → · Palette generator →

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