#3F23A7#3F23A7

#3F23A7 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.194 H 282.4°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#3F23A7
RGBrgb(63, 35, 167)
HSLhsl(253, 65%, 40%)
HSVhsv(253, 79%, 65%)
CMYKcmyk(62.3%, 79%, 0%, 34.5%)
CIE-LABlab(26.87, 48.25, -65.67)
CIE-LCHlch(26.87, 81.49, 306.31°)
OKLaboklab(39.12% 0.0418 -0.1894)
OKLCHoklch(39.12% 0.194 282.4)
XYZxyz(9.6238, 5.0482, 37.0190)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F23A7 #8BA723
analogous
#2349A7 #3F23A7 #8123A7
triadic
#3F23A7 #A73F23 #23A73F
tetradic
#3F23A7 #A72349 #8BA723 #23A781
square
#3F23A7 #A72349 #8BA723 #23A781
split-complementary
#3F23A7 #A78123 #49A723
monochromatic
#190E42 #2C1874 #3F23A7 #5533D4 #7F66DF

Accessibility & contrast

On white

10.45
#3F23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3F23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F23A7
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F23A7#FFFFFF#000000##FFFFFF
##3F23A71.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f23a7;
/* rgb */ color: rgb(63, 35, 167);
/* oklch */ color: oklch(39.1% 0.194 282.4);
Tailwind
colors: {
  custom: {
    50: '#8262c2',
    500: '#3f23a7',
    950: '#000000',
  },
}
SCSS
$custom: #3f23a7;
$custom-light: #8262c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f23a7",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 252.727,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39122,
    "c": 0.19397,
    "h": 282.4
  },
  "luminance": 0.05049
}

Semantic roles & 50–950 ramp

primary
#3F23A7
secondary
#AFC461
accent
#E83FC4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3F23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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