#3F288D#3F288D

#3F288D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.157 H 286.5°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#3F288D
RGBrgb(63, 40, 141)
HSLhsl(254, 56%, 35%)
HSVhsv(254, 72%, 55%)
CMYKcmyk(55.3%, 71.6%, 0%, 44.7%)
CIE-LABlab(25.25, 37.74, -52.42)
CIE-LCHlch(25.25, 64.59, 305.76°)
OKLaboklab(37.21% 0.0445 -0.1507)
OKLCHoklch(37.21% 0.157 286.5)
XYZxyz(7.6150, 4.4970, 25.6609)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F288D #768D28
analogous
#28448D #3F288D #71288D
triadic
#3F288D #8D3F28 #288D3F
tetradic
#3F288D #8D2844 #768D28 #288D71
square
#3F288D #8D2844 #768D28 #288D71
split-complementary
#3F288D #8D7128 #448D28
monochromatic
#140D2E #2A1A5D #3F288D #5436BD #785ED1

Accessibility & contrast

On white

11.06
#3F288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3F288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F288D
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F288D#FFFFFF#000000##FFFFFF
##3F288D1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#1E4257
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f288d;
/* rgb */ color: rgb(63, 40, 141);
/* oklch */ color: oklch(37.2% 0.157 286.5);
Tailwind
colors: {
  custom: {
    50: '#7d64af',
    500: '#3f288d',
    950: '#000000',
  },
}
SCSS
$custom: #3f288d;
$custom-light: #7d64af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f288d",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 253.663,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37208,
    "c": 0.15711,
    "h": 286.5
  },
  "luminance": 0.04497
}

Semantic roles & 50–950 ramp

primary
#3F288D
secondary
#A2B75A
accent
#DF49BD
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3F288D

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

Preview Lab → · Contrast checker → · Palette generator →

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