#3F295E#3F295E

#3F295E is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.5% C 0.092 H 300.7°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#3F295E
RGBrgb(63, 41, 94)
HSLhsl(265, 39%, 26%)
HSVhsv(265, 56%, 37%)
CMYKcmyk(33%, 56.4%, 0%, 63.1%)
CIE-LABlab(21.77, 22.83, -28.03)
CIE-LCHlch(21.77, 36.15, 309.17°)
OKLaboklab(33.51% 0.0469 -0.079)
OKLCHoklch(33.51% 0.092 300.7)
XYZxyz(4.8627, 3.4508, 10.9974)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F295E #485E29
analogous
#292E5E #3F295E #5A295E
triadic
#3F295E #5E3F29 #295E3F
tetradic
#3F295E #5E292E #485E29 #295E5A
square
#3F295E #5E292E #485E29 #295E5A
split-complementary
#3F295E #5E5A29 #2E5E29
monochromatic
#0E0915 #221633 #3F295E #5C3C89 #784FB2

Accessibility & contrast

On white

12.42
#3F295E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3F295E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F295E
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F295E#FFFFFF#000000##FFFFFF
##3F295E1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163460
Deuteranopia (green-blind)
#1C345D
Tritanopia (blue-blind)
#39333F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3f295e;
/* rgb */ color: rgb(63, 41, 94);
/* oklch */ color: oklch(33.5% 0.092 300.7);
Tailwind
colors: {
  custom: {
    50: '#76638c',
    500: '#3f295e',
    950: '#000000',
  },
}
SCSS
$custom: #3f295e;
$custom-light: #76638c;
$custom-dark: #000000;
JSON
{
  "hex": "#3f295e",
  "rgb": {
    "r": 63,
    "g": 41,
    "b": 94
  },
  "hsl": {
    "h": 264.906,
    "s": 39.259,
    "l": 26.471
  },
  "oklch": {
    "l": 0.33506,
    "c": 0.09193,
    "h": 300.7
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#3F295E
secondary
#779152
accent
#CF599E
background
#F7F5F8
surface
#EDEAF0
border
#C8C6CB
text
#09050C
muted
#7B797D

Preview Lab

Preview with #3F295E

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

Preview Lab → · Contrast checker → · Palette generator →

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