#3F23A2#3F23A2

#3F23A2 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.188 H 283.3°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#3F23A2
RGBrgb(63, 35, 162)
HSLhsl(253, 64%, 39%)
HSVhsv(253, 78%, 64%)
CMYKcmyk(61.1%, 78.4%, 0%, 36.5%)
CIE-LABlab(26.35, 46.78, -63.50)
CIE-LCHlch(26.35, 78.87, 306.38°)
OKLaboklab(38.6% 0.0432 -0.1831)
OKLCHoklch(38.6% 0.188 283.3)
XYZxyz(9.1705, 4.8668, 34.6316)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F23A2 #86A223
analogous
#2346A2 #3F23A2 #7E23A2
triadic
#3F23A2 #A23F23 #23A23F
tetradic
#3F23A2 #A22346 #86A223 #23A27E
square
#3F23A2 #A22346 #86A223 #23A27E
split-complementary
#3F23A2 #A27E23 #46A223
monochromatic
#180D3D #2B1870 #3F23A2 #5430D2 #7D62DD

Accessibility & contrast

On white

10.64
#3F23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3F23A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F23A2
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F23A2#FFFFFF#000000##FFFFFF
##3F23A21.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f23a2;
/* rgb */ color: rgb(63, 35, 162);
/* oklch */ color: oklch(38.6% 0.188 283.3);
Tailwind
colors: {
  custom: {
    50: '#8162bf',
    500: '#3f23a2',
    950: '#000000',
  },
}
SCSS
$custom: #3f23a2;
$custom-light: #8162bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f23a2",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 253.228,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38604,
    "c": 0.18811,
    "h": 283.3
  },
  "luminance": 0.04867
}

Semantic roles & 50–950 ramp

primary
#3F23A2
secondary
#ACC25E
accent
#E740C3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #3F23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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