#3F237D#3F237D

#3F237D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.143 H 291.5°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#3F237D
RGBrgb(63, 35, 125)
HSLhsl(259, 56%, 31%)
HSVhsv(259, 72%, 49%)
CMYKcmyk(49.6%, 72%, 0%, 51%)
CIE-LABlab(22.79, 35.70, -46.40)
CIE-LCHlch(22.79, 58.55, 307.58°)
OKLaboklab(35.01% 0.0524 -0.133)
OKLCHoklch(35.01% 0.143 291.5)
XYZxyz(6.3516, 3.7393, 19.7851)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F237D #617D23
analogous
#23347D #3F237D #6C237D
triadic
#3F237D #7D3F23 #237D3F
tetradic
#3F237D #7D2334 #617D23 #237D6C
square
#3F237D #7D2334 #617D23 #237D6C
split-complementary
#3F237D #7D6C23 #347D23
monochromatic
#0F081D #27164D #3F237D #5730AD #754DCD

Accessibility & contrast

On white

12.02
#3F237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F237D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F237D#FFFFFF#000000##FFFFFF
##3F237D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#2B3A4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f237d;
/* rgb */ color: rgb(63, 35, 125);
/* oklch */ color: oklch(35.0% 0.143 291.5);
Tailwind
colors: {
  custom: {
    50: '#7a60a3',
    500: '#3f237d',
    950: '#000000',
  },
}
SCSS
$custom: #3f237d;
$custom-light: #7a60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f237d",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 258.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35007,
    "c": 0.14297,
    "h": 291.5
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#3F237D
secondary
#91AF4C
accent
#E048B0
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F237D

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

Preview Lab → · Contrast checker → · Palette generator →

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