#3F288A#3F288A

#3F288A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.153 H 287.1°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#3F288A
RGBrgb(63, 40, 138)
HSLhsl(254, 55%, 35%)
HSVhsv(254, 71%, 54%)
CMYKcmyk(54.3%, 71%, 0%, 45.9%)
CIE-LABlab(24.98, 36.82, -50.99)
CIE-LCHlch(24.98, 62.89, 305.83°)
OKLaboklab(36.93% 0.0451 -0.1465)
OKLCHoklch(36.93% 0.153 287.1)
XYZxyz(7.3948, 4.4089, 24.5012)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F288A #738A28
analogous
#28428A #3F288A #70288A
triadic
#3F288A #8A3F28 #288A3F
tetradic
#3F288A #8A2842 #738A28 #288A70
square
#3F288A #8A2842 #738A28 #288A70
split-complementary
#3F288A #8A7028 #428A28
monochromatic
#140C2B #291A5B #3F288A #5536B9 #785DD0

Accessibility & contrast

On white

11.16
#3F288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3F288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F288A
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F288A#FFFFFF#000000##FFFFFF
##3F288A1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#214156
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f288a;
/* rgb */ color: rgb(63, 40, 138);
/* oklch */ color: oklch(36.9% 0.153 287.1);
Tailwind
colors: {
  custom: {
    50: '#7c64ad',
    500: '#3f288a',
    950: '#000000',
  },
}
SCSS
$custom: #3f288a;
$custom-light: #7c64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f288a",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 254.082,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3693,
    "c": 0.15328,
    "h": 287.1
  },
  "luminance": 0.04409
}

Semantic roles & 50–950 ramp

primary
#3F288A
secondary
#9FB559
accent
#DE49BB
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3F288A

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

Preview Lab → · Contrast checker → · Palette generator →

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