#3F23A3#3F23A3

#3F23A3 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.189 H 283.1°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#3F23A3
RGBrgb(63, 35, 163)
HSLhsl(253, 65%, 39%)
HSVhsv(253, 79%, 64%)
CMYKcmyk(61.3%, 78.5%, 0%, 36.1%)
CIE-LABlab(26.46, 47.07, -63.94)
CIE-LCHlch(26.46, 79.40, 306.36°)
OKLaboklab(38.71% 0.0429 -0.1844)
OKLCHoklch(38.71% 0.189 283.1)
XYZxyz(9.2597, 4.9025, 35.1016)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F23A3 #87A323
analogous
#2347A3 #3F23A3 #7F23A3
triadic
#3F23A3 #A33F23 #23A33F
tetradic
#3F23A3 #A32347 #87A323 #23A37F
square
#3F23A3 #A32347 #87A323 #23A37F
split-complementary
#3F23A3 #A37F23 #47A323
monochromatic
#180D3E #2C1871 #3F23A3 #5431D3 #7E63DD

Accessibility & contrast

On white

10.60
#3F23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3F23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F23A3
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F23A3#FFFFFF#000000##FFFFFF
##3F23A31.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#003AA1
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f23a3;
/* rgb */ color: rgb(63, 35, 163);
/* oklch */ color: oklch(38.7% 0.189 283.1);
Tailwind
colors: {
  custom: {
    50: '#8162bf',
    500: '#3f23a3',
    950: '#000000',
  },
}
SCSS
$custom: #3f23a3;
$custom-light: #8162bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f23a3",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 253.125,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38707,
    "c": 0.18929,
    "h": 283.1
  },
  "luminance": 0.04903
}

Semantic roles & 50–950 ramp

primary
#3F23A3
secondary
#ADC35F
accent
#E840C3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #3F23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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