#3F337A#3F337A

#3F337A is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.4% C 0.116 H 287.2°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#3F337A
RGBrgb(63, 51, 122)
HSLhsl(250, 41%, 34%)
HSVhsv(250, 58%, 48%)
CMYKcmyk(48.4%, 58.2%, 0%, 52.2%)
CIE-LABlab(26.24, 24.93, -38.90)
CIE-LCHlch(26.24, 46.20, 302.66°)
OKLaboklab(37.44% 0.0343 -0.1109)
OKLCHoklch(37.44% 0.116 287.2)
XYZxyz(6.7456, 4.8293, 18.9853)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F337A #6E7A33
analogous
#334B7A #3F337A #63337A
triadic
#3F337A #7A3F33 #337A3F
tetradic
#3F337A #7A334B #6E7A33 #337A63
square
#3F337A #7A334B #6E7A33 #337A63
split-complementary
#3F337A #7A6333 #4B7A33
monochromatic
#120F24 #29214F #3F337A #5545A5 #7768C0

Accessibility & contrast

On white

10.68
#3F337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3F337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F337A
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F337A#FFFFFF#000000##FFFFFF
##3F337A1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08407C
Deuteranopia (green-blind)
#083C78
Tritanopia (blue-blind)
#2C4351
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f337a;
/* rgb */ color: rgb(63, 51, 122);
/* oklch */ color: oklch(37.4% 0.116 287.2);
Tailwind
colors: {
  custom: {
    50: '#796ba1',
    500: '#3f337a',
    950: '#000000',
  },
}
SCSS
$custom: #3f337a;
$custom-light: #796ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f337a",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 250.141,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37444,
    "c": 0.11612,
    "h": 287.2
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#3F337A
secondary
#9CA861
accent
#D157BC
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3F337A

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

Preview Lab → · Contrast checker → · Palette generator →

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