#3F23A5#3F23A5

#3F23A5 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.192 H 282.8°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#3F23A5
RGBrgb(63, 35, 165)
HSLhsl(253, 65%, 39%)
HSVhsv(253, 79%, 65%)
CMYKcmyk(61.8%, 78.8%, 0%, 35.3%)
CIE-LABlab(26.66, 47.66, -64.81)
CIE-LCHlch(26.66, 80.45, 306.33°)
OKLaboklab(38.91% 0.0423 -0.1869)
OKLCHoklch(38.91% 0.192 282.8)
XYZxyz(9.4404, 4.9748, 36.0528)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F23A5 #89A523
analogous
#2348A5 #3F23A5 #8023A5
triadic
#3F23A5 #A53F23 #23A53F
tetradic
#3F23A5 #A52348 #89A523 #23A580
square
#3F23A5 #A52348 #89A523 #23A580
split-complementary
#3F23A5 #A58023 #48A523
monochromatic
#180E40 #2C1873 #3F23A5 #5532D3 #7E64DE

Accessibility & contrast

On white

10.53
#3F23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F23A5
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F23A5#FFFFFF#000000##FFFFFF
##3F23A51.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3f23a5;
/* rgb */ color: rgb(63, 35, 165);
/* oklch */ color: oklch(38.9% 0.192 282.8);
Tailwind
colors: {
  custom: {
    50: '#8162c1',
    500: '#3f23a5',
    950: '#000000',
  },
}
SCSS
$custom: #3f23a5;
$custom-light: #8162c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f23a5",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 252.923,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38914,
    "c": 0.19163,
    "h": 282.8
  },
  "luminance": 0.04975
}

Semantic roles & 50–950 ramp

primary
#3F23A5
secondary
#AEC460
accent
#E840C4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #3F23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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