#3F23A0#3F23A0

#3F23A0 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.186 H 283.6°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#3F23A0
RGBrgb(63, 35, 160)
HSLhsl(253, 64%, 38%)
HSVhsv(253, 78%, 63%)
CMYKcmyk(60.6%, 78.1%, 0%, 37.3%)
CIE-LABlab(26.15, 46.18, -62.62)
CIE-LCHlch(26.15, 77.81, 306.41°)
OKLaboklab(38.4% 0.0438 -0.1805)
OKLCHoklch(38.4% 0.186 283.6)
XYZxyz(8.9941, 4.7963, 33.7027)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F23A0 #84A023
analogous
#2345A0 #3F23A0 #7D23A0
triadic
#3F23A0 #A03F23 #23A03F
tetradic
#3F23A0 #A02345 #84A023 #23A07D
square
#3F23A0 #A02345 #84A023 #23A07D
split-complementary
#3F23A0 #A07D23 #45A023
monochromatic
#170D3C #2B186E #3F23A0 #532FD1 #7D61DC

Accessibility & contrast

On white

10.72
#3F23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3F23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F23A0
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F23A0#FFFFFF#000000##FFFFFF
##3F23A01.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#003A9E
Tritanopia (blue-blind)
#004761
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f23a0;
/* rgb */ color: rgb(63, 35, 160);
/* oklch */ color: oklch(38.4% 0.186 283.6);
Tailwind
colors: {
  custom: {
    50: '#8062bd',
    500: '#3f23a0',
    950: '#000000',
  },
}
SCSS
$custom: #3f23a0;
$custom-light: #8062bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3f23a0",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 253.44,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38399,
    "c": 0.18576,
    "h": 283.6
  },
  "luminance": 0.04797
}

Semantic roles & 50–950 ramp

primary
#3F23A0
secondary
#ABC15D
accent
#E741C2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3F23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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