#3F23A8#3F23A8

#3F23A8 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.195 H 282.3°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#3F23A8
RGBrgb(63, 35, 168)
HSLhsl(253, 66%, 40%)
HSVhsv(253, 79%, 66%)
CMYKcmyk(62.5%, 79.2%, 0%, 34.1%)
CIE-LABlab(26.98, 48.55, -66.10)
CIE-LCHlch(26.98, 82.02, 306.29°)
OKLaboklab(39.23% 0.0415 -0.1907)
OKLCHoklch(39.23% 0.195 282.3)
XYZxyz(9.7166, 5.0853, 37.5077)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F23A8 #8CA823
analogous
#2349A8 #3F23A8 #8223A8
triadic
#3F23A8 #A83F23 #23A83F
tetradic
#3F23A8 #A82349 #8CA823 #23A882
square
#3F23A8 #A82349 #8CA823 #23A882
split-complementary
#3F23A8 #A88223 #49A823
monochromatic
#190E43 #2C1875 #3F23A8 #5534D5 #8066DF

Accessibility & contrast

On white

10.41
#3F23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3F23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F23A8
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F23A8#FFFFFF#000000##FFFFFF
##3F23A81.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3f23a8;
/* rgb */ color: rgb(63, 35, 168);
/* oklch */ color: oklch(39.2% 0.195 282.3);
Tailwind
colors: {
  custom: {
    50: '#8262c3',
    500: '#3f23a8',
    950: '#000000',
  },
}
SCSS
$custom: #3f23a8;
$custom-light: #8262c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f23a8",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 252.632,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39226,
    "c": 0.19512,
    "h": 282.3
  },
  "luminance": 0.05086
}

Semantic roles & 50–950 ramp

primary
#3F23A8
secondary
#B0C562
accent
#E83FC5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3F23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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