#3F268F#3F268F

#3F268F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.162 H 286.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#3F268F
RGBrgb(63, 38, 143)
HSLhsl(254, 58%, 35%)
HSVhsv(254, 73%, 56%)
CMYKcmyk(55.9%, 73.4%, 0%, 43.9%)
CIE-LABlab(25.03, 39.48, -54.02)
CIE-LCHlch(25.03, 66.91, 306.17°)
OKLaboklab(37.11% 0.0459 -0.1554)
OKLCHoklch(37.11% 0.162 286.4)
XYZxyz(7.6995, 4.4257, 26.4298)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F268F #768F26
analogous
#26418F #3F268F #73268F
triadic
#3F268F #8F3F26 #268F3F
tetradic
#3F268F #8F2641 #768F26 #268F73
square
#3F268F #8F2641 #768F26 #268F73
split-complementary
#3F268F #8F7326 #418F26
monochromatic
#140C2E #2A195F #3F268F #5433BF #785CD4

Accessibility & contrast

On white

11.14
#3F268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3F268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F268F
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F268F#FFFFFF#000000##FFFFFF
##3F268F1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#1C4258
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f268f;
/* rgb */ color: rgb(63, 38, 143);
/* oklch */ color: oklch(37.1% 0.162 286.4);
Tailwind
colors: {
  custom: {
    50: '#7d63b1',
    500: '#3f268f',
    950: '#000000',
  },
}
SCSS
$custom: #3f268f;
$custom-light: #7d63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f268f",
  "rgb": {
    "r": 63,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 254.286,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37108,
    "c": 0.16199,
    "h": 286.4
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#3F268F
secondary
#A2B958
accent
#E147BC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3F268F

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

Preview Lab → · Contrast checker → · Palette generator →

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