#3F268B#3F268B

#3F268B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.157 H 287.3°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#3F268B
RGBrgb(63, 38, 139)
HSLhsl(255, 57%, 35%)
HSVhsv(255, 73%, 55%)
CMYKcmyk(54.7%, 72.7%, 0%, 45.5%)
CIE-LABlab(24.66, 38.26, -52.14)
CIE-LCHlch(24.66, 64.67, 306.27°)
OKLaboklab(36.73% 0.0467 -0.1499)
OKLCHoklch(36.73% 0.157 287.3)
XYZxyz(7.4018, 4.3067, 24.8623)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F268B #728B26
analogous
#26408B #3F268B #71268B
triadic
#3F268B #8B3F26 #268B3F
tetradic
#3F268B #8B2640 #728B26 #268B71
square
#3F268B #8B2640 #728B26 #268B71
split-complementary
#3F268B #8B7126 #408B26
monochromatic
#130C2B #29195B #3F268B #5533BB #775AD2

Accessibility & contrast

On white

11.28
#3F268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3F268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F268B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F268B#FFFFFF#000000##FFFFFF
##3F268B1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#204156
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f268b;
/* rgb */ color: rgb(63, 38, 139);
/* oklch */ color: oklch(36.7% 0.157 287.3);
Tailwind
colors: {
  custom: {
    50: '#7c63ae',
    500: '#3f268b',
    950: '#000000',
  },
}
SCSS
$custom: #3f268b;
$custom-light: #7c63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3f268b",
  "rgb": {
    "r": 63,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 254.851,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3673,
    "c": 0.15698,
    "h": 287.3
  },
  "luminance": 0.04307
}

Semantic roles & 50–950 ramp

primary
#3F268B
secondary
#9FB756
accent
#E047BA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3F268B

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

Preview Lab → · Contrast checker → · Palette generator →

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