#3F337B#3F337B

#3F337B is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.5% C 0.118 H 287.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#3F337B
RGBrgb(63, 51, 123)
HSLhsl(250, 41%, 34%)
HSVhsv(250, 59%, 48%)
CMYKcmyk(48.8%, 58.5%, 0%, 51.8%)
CIE-LABlab(26.32, 25.25, -39.42)
CIE-LCHlch(26.32, 46.81, 302.65°)
OKLaboklab(37.52% 0.0343 -0.1125)
OKLCHoklch(37.52% 0.118 287)
XYZxyz(6.8078, 4.8542, 19.3133)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F337B #6F7B33
analogous
#334B7B #3F337B #63337B
triadic
#3F337B #7B3F33 #337B3F
tetradic
#3F337B #7B334B #6F7B33 #337B63
square
#3F337B #7B334B #6F7B33 #337B63
split-complementary
#3F337B #7B6333 #4B7B33
monochromatic
#130F24 #292150 #3F337B #5545A6 #7768C0

Accessibility & contrast

On white

10.66
#3F337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F337B
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F337B#FFFFFF#000000##FFFFFF
##3F337B1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06407D
Deuteranopia (green-blind)
#053C79
Tritanopia (blue-blind)
#2B4351
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f337b;
/* rgb */ color: rgb(63, 51, 123);
/* oklch */ color: oklch(37.5% 0.118 287.0);
Tailwind
colors: {
  custom: {
    50: '#796ba2',
    500: '#3f337b',
    950: '#000000',
  },
}
SCSS
$custom: #3f337b;
$custom-light: #796ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f337b",
  "rgb": {
    "r": 63,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 250,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3752,
    "c": 0.11757,
    "h": 287
  },
  "luminance": 0.04854
}

Semantic roles & 50–950 ramp

primary
#3F337B
secondary
#9CA862
accent
#D157BD
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3F337B

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

Preview Lab → · Contrast checker → · Palette generator →

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