#3F23A6#3F23A6

#3F23A6 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.193 H 282.6°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#3F23A6
RGBrgb(63, 35, 166)
HSLhsl(253, 65%, 39%)
HSVhsv(253, 79%, 65%)
CMYKcmyk(62%, 78.9%, 0%, 34.9%)
CIE-LABlab(26.77, 47.96, -65.24)
CIE-LCHlch(26.77, 80.97, 306.32°)
OKLaboklab(39.02% 0.042 -0.1882)
OKLCHoklch(39.02% 0.193 282.6)
XYZxyz(9.5317, 5.0113, 36.5340)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F23A6 #8AA623
analogous
#2349A6 #3F23A6 #8023A6
triadic
#3F23A6 #A63F23 #23A63F
tetradic
#3F23A6 #A62349 #8AA623 #23A680
square
#3F23A6 #A62349 #8AA623 #23A680
split-complementary
#3F23A6 #A68023 #49A623
monochromatic
#190E41 #2C1873 #3F23A6 #5532D4 #7F65DF

Accessibility & contrast

On white

10.49
#3F23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3F23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F23A6
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F23A6#FFFFFF#000000##FFFFFF
##3F23A61.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003BA4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f23a6;
/* rgb */ color: rgb(63, 35, 166);
/* oklch */ color: oklch(39.0% 0.193 282.6);
Tailwind
colors: {
  custom: {
    50: '#8262c2',
    500: '#3f23a6',
    950: '#000000',
  },
}
SCSS
$custom: #3f23a6;
$custom-light: #8262c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f23a6",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 252.824,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39018,
    "c": 0.1928,
    "h": 282.6
  },
  "luminance": 0.05012
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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