#3F288B#3F288B

#3F288B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.155 H 286.9°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#3F288B
RGBrgb(63, 40, 139)
HSLhsl(254, 55%, 35%)
HSVhsv(254, 71%, 55%)
CMYKcmyk(54.7%, 71.2%, 0%, 45.5%)
CIE-LABlab(25.07, 37.12, -51.47)
CIE-LCHlch(25.07, 63.46, 305.80°)
OKLaboklab(37.02% 0.0449 -0.1479)
OKLCHoklch(37.02% 0.155 286.9)
XYZxyz(7.4675, 4.4380, 24.8842)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F288B #748B28
analogous
#28438B #3F288B #70288B
triadic
#3F288B #8B3F28 #288B3F
tetradic
#3F288B #8B2843 #748B28 #288B70
square
#3F288B #8B2843 #748B28 #288B70
split-complementary
#3F288B #8B7028 #438B28
monochromatic
#140D2C #291A5B #3F288B #5536BB #785DD0

Accessibility & contrast

On white

11.13
#3F288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3F288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F288B
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F288B#FFFFFF#000000##FFFFFF
##3F288B1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#204256
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f288b;
/* rgb */ color: rgb(63, 40, 139);
/* oklch */ color: oklch(37.0% 0.155 286.9);
Tailwind
colors: {
  custom: {
    50: '#7c64ae',
    500: '#3f288b',
    950: '#000000',
  },
}
SCSS
$custom: #3f288b;
$custom-light: #7c64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f288b",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 253.939,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37022,
    "c": 0.15456,
    "h": 286.9
  },
  "luminance": 0.04438
}

Semantic roles & 50–950 ramp

primary
#3F288B
secondary
#A0B659
accent
#DF49BC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3F288B

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

Preview Lab → · Contrast checker → · Palette generator →

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