#3D229F#3D229F

#3D229F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.186 H 283.0°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#3D229F
RGBrgb(61, 34, 159)
HSLhsl(253, 65%, 38%)
HSVhsv(253, 79%, 62%)
CMYKcmyk(61.6%, 78.6%, 0%, 37.6%)
CIE-LABlab(25.68, 46.13, -62.79)
CIE-LCHlch(25.68, 77.92, 306.31°)
OKLaboklab(38% 0.0417 -0.1811)
OKLCHoklch(38% 0.186 283)
XYZxyz(8.7526, 4.6388, 33.2283)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D229F #849F22
analogous
#22459F #3D229F #7B229F
triadic
#3D229F #9F3D22 #229F3D
tetradic
#3D229F #9F2245 #849F22 #229F7B
square
#3D229F #9F2245 #849F22 #229F7B
split-complementary
#3D229F #9F7B22 #459F22
monochromatic
#160C3A #2A176D #3D229F #502DD1 #7A5FDD

Accessibility & contrast

On white

10.89
#3D229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3D229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D229F
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D229F#FFFFFF#000000##FFFFFF
##3D229F1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3d229f;
/* rgb */ color: rgb(61, 34, 159);
/* oklch */ color: oklch(38.0% 0.186 283.0);
Tailwind
colors: {
  custom: {
    50: '#7f61bd',
    500: '#3d229f',
    950: '#000000',
  },
}
SCSS
$custom: #3d229f;
$custom-light: #7f61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3d229f",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 252.96,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37995,
    "c": 0.1858,
    "h": 283
  },
  "luminance": 0.04639
}

Semantic roles & 50–950 ramp

primary
#3D229F
secondary
#ABC15B
accent
#E840C4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D229F

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

Preview Lab → · Contrast checker → · Palette generator →

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