#3D26A2#3D26A2

#3D26A2 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.186 H 281.9°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#3D26A2
RGBrgb(61, 38, 162)
HSLhsl(251, 62%, 39%)
HSVhsv(251, 77%, 64%)
CMYKcmyk(62.3%, 76.5%, 0%, 36.5%)
CIE-LABlab(26.70, 45.01, -62.94)
CIE-LCHlch(26.70, 77.38, 305.57°)
OKLaboklab(38.8% 0.0383 -0.1815)
OKLCHoklch(38.8% 0.186 281.9)
XYZxyz(9.1371, 4.9863, 34.6564)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D26A2 #8BA226
analogous
#264DA2 #3D26A2 #7B26A2
triadic
#3D26A2 #A23D26 #26A23D
tetradic
#3D26A2 #A2264D #8BA226 #26A27B
square
#3D26A2 #A2264D #8BA226 #26A27B
split-complementary
#3D26A2 #A27B26 #4DA226
monochromatic
#180F3F #2A1A70 #3D26A2 #5235D0 #7D67DB

Accessibility & contrast

On white

10.51
#3D26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D26A2
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D26A2#FFFFFF#000000##FFFFFF
##3D26A21.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A6
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3d26a2;
/* rgb */ color: rgb(61, 38, 162);
/* oklch */ color: oklch(38.8% 0.186 281.9);
Tailwind
colors: {
  custom: {
    50: '#8064bf',
    500: '#3d26a2',
    950: '#000000',
  },
}
SCSS
$custom: #3d26a2;
$custom-light: #8064bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3d26a2",
  "rgb": {
    "r": 61,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 251.129,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38799,
    "c": 0.18552,
    "h": 281.9
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#3D26A2
secondary
#B0C163
accent
#E543C7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3D26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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