#3F267A#3F267A

#3F267A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.135 H 291.6°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#3F267A
RGBrgb(63, 38, 122)
HSLhsl(258, 53%, 31%)
HSVhsv(258, 69%, 48%)
CMYKcmyk(48.4%, 68.9%, 0%, 52.2%)
CIE-LABlab(23.16, 33.06, -43.89)
CIE-LCHlch(23.16, 54.95, 306.99°)
OKLaboklab(35.19% 0.0497 -0.1256)
OKLCHoklch(35.19% 0.135 291.6)
XYZxyz(6.2549, 3.8479, 18.8217)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F267A #617A26
analogous
#26377A #3F267A #69267A
triadic
#3F267A #7A3F26 #267A3F
tetradic
#3F267A #7A2637 #617A26 #267A69
square
#3F267A #7A2637 #617A26 #267A69
split-complementary
#3F267A #7A6926 #377A26
monochromatic
#0F091D #27174B #3F267A #5735A9 #7551C9

Accessibility & contrast

On white

11.87
#3F267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3F267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F267A
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F267A#FFFFFF#000000##FFFFFF
##3F267A1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#2D3A4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f267a;
/* rgb */ color: rgb(63, 38, 122);
/* oklch */ color: oklch(35.2% 0.135 291.6);
Tailwind
colors: {
  custom: {
    50: '#7a62a1',
    500: '#3f267a',
    950: '#000000',
  },
}
SCSS
$custom: #3f267a;
$custom-light: #7a62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f267a",
  "rgb": {
    "r": 63,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 257.857,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35193,
    "c": 0.13513,
    "h": 291.6
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#3F267A
secondary
#91AC50
accent
#DC4CB1
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F267A

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

Preview Lab → · Contrast checker → · Palette generator →

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