#3F237E#3F237E

#3F237E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.144 H 291.2°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#3F237E
RGBrgb(63, 35, 126)
HSLhsl(258, 57%, 32%)
HSVhsv(258, 72%, 49%)
CMYKcmyk(50%, 72.2%, 0%, 50.6%)
CIE-LABlab(22.88, 36.00, -46.89)
CIE-LCHlch(22.88, 59.12, 307.52°)
OKLaboklab(35.1% 0.0522 -0.1344)
OKLCHoklch(35.1% 0.144 291.2)
XYZxyz(6.4158, 3.7649, 20.1233)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F237E #627E23
analogous
#23347E #3F237E #6D237E
triadic
#3F237E #7E3F23 #237E3F
tetradic
#3F237E #7E2334 #627E23 #237E6D
square
#3F237E #7E2334 #627E23 #237E6D
split-complementary
#3F237E #7E6D23 #347E23
monochromatic
#0F081E #27164E #3F237E #5730AE #754ECE

Accessibility & contrast

On white

11.98
#3F237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3F237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F237E
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F237E#FFFFFF#000000##FFFFFF
##3F237E1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#2B3A4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3f237e;
/* rgb */ color: rgb(63, 35, 126);
/* oklch */ color: oklch(35.1% 0.144 291.2);
Tailwind
colors: {
  custom: {
    50: '#7b60a4',
    500: '#3f237e',
    950: '#000000',
  },
}
SCSS
$custom: #3f237e;
$custom-light: #7b60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3f237e",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 258.462,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35098,
    "c": 0.14424,
    "h": 291.2
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#3F237E
secondary
#92B04C
accent
#E048B1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F237E

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

Preview Lab → · Contrast checker → · Palette generator →

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