#3F266B#3F266B

#3F266B is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.9% C 0.115 H 296.4°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#3F266B
RGBrgb(63, 38, 107)
HSLhsl(262, 48%, 28%)
HSVhsv(262, 64%, 42%)
CMYKcmyk(41.1%, 64.5%, 0%, 58%)
CIE-LABlab(21.96, 28.55, -36.21)
CIE-LCHlch(21.96, 46.11, 308.25°)
OKLaboklab(33.94% 0.0513 -0.1031)
OKLCHoklch(33.94% 0.115 296.4)
XYZxyz(5.3962, 3.5044, 14.2992)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F266B #526B26
analogous
#262F6B #3F266B #61266B
triadic
#3F266B #6B3F26 #266B3F
tetradic
#3F266B #6B262F #526B26 #266B61
square
#3F266B #6B262F #526B26 #266B61
split-complementary
#3F266B #6B6126 #2F6B26
monochromatic
#0D0817 #24163E #3F266B #5A3698 #764CBF

Accessibility & contrast

On white

12.35
#3F266B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3F266B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F266B
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F266B#FFFFFF#000000##FFFFFF
##3F266B1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#05346A
Tritanopia (blue-blind)
#343544
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3f266b;
/* rgb */ color: rgb(63, 38, 107);
/* oklch */ color: oklch(33.9% 0.115 296.4);
Tailwind
colors: {
  custom: {
    50: '#786296',
    500: '#3f266b',
    950: '#000000',
  },
}
SCSS
$custom: #3f266b;
$custom-light: #786296;
$custom-dark: #000000;
JSON
{
  "hex": "#3f266b",
  "rgb": {
    "r": 63,
    "g": 38,
    "b": 107
  },
  "hsl": {
    "h": 261.739,
    "s": 47.586,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33944,
    "c": 0.1151,
    "h": 296.4
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#3F266B
secondary
#819E4F
accent
#D751A6
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050D
muted
#7B797E

Preview Lab

Preview with #3F266B

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

Preview Lab → · Contrast checker → · Palette generator →

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