#3F285A#3F285A

#3F285A is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.0% C 0.088 H 303.2°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#3F285A
RGBrgb(63, 40, 90)
HSLhsl(268, 38%, 25%)
HSVhsv(268, 56%, 35%)
CMYKcmyk(30%, 55.6%, 0%, 64.7%)
CIE-LABlab(21.25, 22.34, -26.20)
CIE-LCHlch(21.25, 34.43, 310.45°)
OKLaboklab(33.04% 0.0481 -0.0737)
OKLCHoklch(33.04% 0.088 303.2)
XYZxyz(4.6537, 3.3125, 10.0651)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F285A #435A28
analogous
#282A5A #3F285A #58285A
triadic
#3F285A #5A3F28 #285A3F
tetradic
#3F285A #5A282A #435A28 #285A58
square
#3F285A #5A282A #435A28 #285A58
split-complementary
#3F285A #5A5828 #2A5A28
monochromatic
#0F0915 #211530 #3F285A #5D3B84 #7A4EAF

Accessibility & contrast

On white

12.63
#3F285A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3F285A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F285A
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F285A#FFFFFF#000000##FFFFFF
##3F285A1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18335C
Deuteranopia (green-blind)
#1E3359
Tritanopia (blue-blind)
#3A313D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3f285a;
/* rgb */ color: rgb(63, 40, 90);
/* oklch */ color: oklch(33.0% 0.088 303.2);
Tailwind
colors: {
  custom: {
    50: '#766289',
    500: '#3f285a',
    950: '#000000',
  },
}
SCSS
$custom: #3f285a;
$custom-light: #766289;
$custom-dark: #000000;
JSON
{
  "hex": "#3f285a",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 90
  },
  "hsl": {
    "h": 267.6,
    "s": 38.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33044,
    "c": 0.08802,
    "h": 303.2
  },
  "luminance": 0.03313
}

Semantic roles & 50–950 ramp

primary
#3F285A
secondary
#718D51
accent
#CE5999
background
#F7F5F8
surface
#EDEAF0
border
#C8C6CB
text
#08050B
muted
#7B797C

Preview Lab

Preview with #3F285A

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

Preview Lab → · Contrast checker → · Palette generator →

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