#3F1262#3F1262

#3F1262 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.132 H 305.2°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#3F1262
RGBrgb(63, 18, 98)
HSLhsl(274, 69%, 23%)
HSVhsv(274, 82%, 38%)
CMYKcmyk(35.7%, 81.6%, 0%, 61.6%)
CIE-LABlab(17.33, 36.84, -37.83)
CIE-LCHlch(17.33, 52.80, 314.24°)
OKLaboklab(30.4% 0.0759 -0.1077)
OKLCHoklch(30.4% 0.132 305.2)
XYZxyz(4.4703, 2.3712, 11.7751)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1262 #356212
analogous
#171262 #3F1262 #62125D
triadic
#3F1262 #623F12 #12623F
tetradic
#3F1262 #621712 #356212 #125D62
square
#3F1262 #621712 #356212 #125D62
split-complementary
#3F1262 #5D6212 #126217
monochromatic
#11051A #1E092E #3F1262 #601B96 #8125C9

Accessibility & contrast

On white

14.25
#3F1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3F1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1262
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1262#FFFFFF#000000##FFFFFF
##3F12621.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#382639
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3f1262;
/* rgb */ color: rgb(63, 18, 98);
/* oklch */ color: oklch(30.4% 0.132 305.2);
Tailwind
colors: {
  custom: {
    50: '#78568f',
    500: '#3f1262',
    950: '#000000',
  },
}
SCSS
$custom: #3f1262;
$custom-light: #78568f;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1262",
  "rgb": {
    "r": 63,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 273.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30395,
    "c": 0.13177,
    "h": 305.2
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#3F1262
secondary
#629A36
accent
#EC3C89
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3F1262

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

Preview Lab → · Contrast checker → · Palette generator →

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