#3F288E#3F288E

#3F288E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.158 H 286.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#3F288E
RGBrgb(63, 40, 142)
HSLhsl(254, 56%, 36%)
HSVhsv(254, 72%, 56%)
CMYKcmyk(55.6%, 71.8%, 0%, 44.3%)
CIE-LABlab(25.34, 38.05, -52.89)
CIE-LCHlch(25.34, 65.15, 305.74°)
OKLaboklab(37.3% 0.0443 -0.1521)
OKLCHoklch(37.3% 0.158 286.2)
XYZxyz(7.6897, 4.5269, 26.0545)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F288E #778E28
analogous
#28448E #3F288E #72288E
triadic
#3F288E #8E3F28 #288E3F
tetradic
#3F288E #8E2844 #778E28 #288E72
square
#3F288E #8E2844 #778E28 #288E72
split-complementary
#3F288E #8E7228 #448E28
monochromatic
#150D2F #2A1B5E #3F288E #5435BE #795FD2

Accessibility & contrast

On white

11.02
#3F288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3F288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F288E
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F288E#FFFFFF#000000##FFFFFF
##3F288E1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#1D4358
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f288e;
/* rgb */ color: rgb(63, 40, 142);
/* oklch */ color: oklch(37.3% 0.158 286.2);
Tailwind
colors: {
  custom: {
    50: '#7d64b0',
    500: '#3f288e',
    950: '#000000',
  },
}
SCSS
$custom: #3f288e;
$custom-light: #7d64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f288e",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 253.529,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37301,
    "c": 0.15838,
    "h": 286.2
  },
  "luminance": 0.04527
}

Semantic roles & 50–950 ramp

primary
#3F288E
secondary
#A2B75B
accent
#DF48BD
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3F288E

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

Preview Lab → · Contrast checker → · Palette generator →

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