#3F237A#3F237A

#3F237A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.7% C 0.139 H 292.4°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#3F237A
RGBrgb(63, 35, 122)
HSLhsl(259, 55%, 31%)
HSVhsv(259, 71%, 48%)
CMYKcmyk(48.4%, 71.3%, 0%, 52.2%)
CIE-LABlab(22.53, 34.80, -44.92)
CIE-LCHlch(22.53, 56.83, 307.77°)
OKLaboklab(34.74% 0.053 -0.1287)
OKLCHoklch(34.74% 0.139 292.4)
XYZxyz(6.1628, 3.6638, 18.7910)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F237A #5E7A23
analogous
#23327A #3F237A #6A237A
triadic
#3F237A #7A3F23 #237A3F
tetradic
#3F237A #7A2332 #5E7A23 #237A6A
square
#3F237A #7A2332 #5E7A23 #237A6A
split-complementary
#3F237A #7A6A23 #327A23
monochromatic
#0E081B #26154A #3F237A #5831AA #754CCC

Accessibility & contrast

On white

12.12
#3F237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3F237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F237A
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F237A#FFFFFF#000000##FFFFFF
##3F237A1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#2D394B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f237a;
/* rgb */ color: rgb(63, 35, 122);
/* oklch */ color: oklch(34.7% 0.139 292.4);
Tailwind
colors: {
  custom: {
    50: '#7a60a1',
    500: '#3f237a',
    950: '#000000',
  },
}
SCSS
$custom: #3f237a;
$custom-light: #7a60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f237a",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 259.31,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34738,
    "c": 0.13915,
    "h": 292.4
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#3F237A
secondary
#8EAD4C
accent
#DF49AF
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F237A

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

Preview Lab → · Contrast checker → · Palette generator →

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