#3D23A8#3D23A8

#3D23A8 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.195 H 281.3°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#3D23A8
RGBrgb(61, 35, 168)
HSLhsl(252, 66%, 40%)
HSVhsv(252, 79%, 66%)
CMYKcmyk(63.7%, 79.2%, 0%, 34.1%)
CIE-LABlab(26.79, 48.33, -66.41)
CIE-LCHlch(26.79, 82.13, 306.04°)
OKLaboklab(39.05% 0.0385 -0.1916)
OKLCHoklch(39.05% 0.195 281.3)
XYZxyz(9.5912, 5.0206, 37.5018)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D23A8 #8EA823
analogous
#234CA8 #3D23A8 #7F23A8
triadic
#3D23A8 #A83D23 #23A83D
tetradic
#3D23A8 #A8234C #8EA823 #23A87F
square
#3D23A8 #A8234C #8EA823 #23A87F
split-complementary
#3D23A8 #A87F23 #4CA823
monochromatic
#180E43 #2B1875 #3D23A8 #5334D5 #7E66DF

Accessibility & contrast

On white

10.48
#3D23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D23A8
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D23A8#FFFFFF#000000##FFFFFF
##3D23A81.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3d23a8;
/* rgb */ color: rgb(61, 35, 168);
/* oklch */ color: oklch(39.1% 0.195 281.3);
Tailwind
colors: {
  custom: {
    50: '#8162c3',
    500: '#3d23a8',
    950: '#000000',
  },
}
SCSS
$custom: #3d23a8;
$custom-light: #8162c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d23a8",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 251.729,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39053,
    "c": 0.19545,
    "h": 281.3
  },
  "luminance": 0.05021
}

Semantic roles & 50–950 ramp

primary
#3D23A8
secondary
#B1C562
accent
#E83FC7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3D23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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