#3D229E#3D229E

#3D229E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.185 H 283.1°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#3D229E
RGBrgb(61, 34, 158)
HSLhsl(253, 65%, 38%)
HSVhsv(253, 78%, 62%)
CMYKcmyk(61.4%, 78.5%, 0%, 38%)
CIE-LABlab(25.58, 45.84, -62.35)
CIE-LCHlch(25.58, 77.39, 306.32°)
OKLaboklab(37.89% 0.042 -0.1798)
OKLCHoklch(37.89% 0.185 283.1)
XYZxyz(8.6661, 4.6042, 32.7732)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D229E #839E22
analogous
#22459E #3D229E #7B229E
triadic
#3D229E #9E3D22 #229E3D
tetradic
#3D229E #9E2245 #839E22 #229E7B
square
#3D229E #9E2245 #839E22 #229E7B
split-complementary
#3D229E #9E7B22 #459E22
monochromatic
#160C39 #2A176C #3D229E #502DD0 #7A5EDC

Accessibility & contrast

On white

10.93
#3D229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3D229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D229E
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D229E#FFFFFF#000000##FFFFFF
##3D229E1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3d229e;
/* rgb */ color: rgb(61, 34, 158);
/* oklch */ color: oklch(37.9% 0.185 283.1);
Tailwind
colors: {
  custom: {
    50: '#7f61bc',
    500: '#3d229e',
    950: '#000000',
  },
}
SCSS
$custom: #3d229e;
$custom-light: #7f61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d229e",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 253.065,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37892,
    "c": 0.18461,
    "h": 283.1
  },
  "luminance": 0.04605
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D229E

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

Preview Lab → · Contrast checker → · Palette generator →

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