#3D20A8#3D20A8

#3D20A8 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.198 H 281.7°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#3D20A8
RGBrgb(61, 32, 168)
HSLhsl(253, 68%, 39%)
HSVhsv(253, 81%, 66%)
CMYKcmyk(63.7%, 81%, 0%, 34.1%)
CIE-LABlab(26.31, 49.73, -67.21)
CIE-LCHlch(26.31, 83.61, 306.50°)
OKLaboklab(38.72% 0.0401 -0.1939)
OKLCHoklch(38.72% 0.198 281.7)
XYZxyz(9.5066, 4.8516, 37.4737)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D20A8 #8BA820
analogous
#2047A8 #3D20A8 #8120A8
triadic
#3D20A8 #A83D20 #20A83D
tetradic
#3D20A8 #A82047 #8BA820 #20A881
square
#3D20A8 #A82047 #8BA820 #20A881
split-complementary
#3D20A8 #A88120 #47A820
monochromatic
#180C41 #2A1675 #3D20A8 #522ED7 #7D61E1

Accessibility & contrast

On white

10.66
#3D20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D20A8
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D20A8#FFFFFF#000000##FFFFFF
##3D20A81.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3d20a8;
/* rgb */ color: rgb(61, 32, 168);
/* oklch */ color: oklch(38.7% 0.198 281.7);
Tailwind
colors: {
  custom: {
    50: '#8161c3',
    500: '#3d20a8',
    950: '#000000',
  },
}
SCSS
$custom: #3d20a8;
$custom-light: #8161c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d20a8",
  "rgb": {
    "r": 61,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 252.794,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38716,
    "c": 0.19804,
    "h": 281.7
  },
  "luminance": 0.04852
}

Semantic roles & 50–950 ramp

primary
#3D20A8
secondary
#B0C65E
accent
#EB3DC6
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3D20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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