#3D229B#3D229B

#3D229B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.181 H 283.7°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#3D229B
RGBrgb(61, 34, 155)
HSLhsl(253, 64%, 37%)
HSVhsv(253, 78%, 61%)
CMYKcmyk(60.6%, 78.1%, 0%, 39.2%)
CIE-LABlab(25.27, 44.94, -61.03)
CIE-LCHlch(25.27, 75.79, 306.37°)
OKLaboklab(37.58% 0.0428 -0.1759)
OKLCHoklch(37.58% 0.181 283.7)
XYZxyz(8.4111, 4.5022, 31.4298)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D229B #809B22
analogous
#22449B #3D229B #79229B
triadic
#3D229B #9B3D22 #229B3D
tetradic
#3D229B #9B2244 #809B22 #229B79
square
#3D229B #9B2244 #809B22 #229B79
split-complementary
#3D229B #9B7922 #449B22
monochromatic
#150C37 #291769 #3D229B #512DCD #785CDB

Accessibility & contrast

On white

11.05
#3D229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3D229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D229B
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D229B#FFFFFF#000000##FFFFFF
##3D229B1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d229b;
/* rgb */ color: rgb(61, 34, 155);
/* oklch */ color: oklch(37.6% 0.181 283.7);
Tailwind
colors: {
  custom: {
    50: '#7f61ba',
    500: '#3d229b',
    950: '#000000',
  },
}
SCSS
$custom: #3d229b;
$custom-light: #7f61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3d229b",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 253.388,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37583,
    "c": 0.18105,
    "h": 283.7
  },
  "luminance": 0.04503
}

Semantic roles & 50–950 ramp

primary
#3D229B
secondary
#A9C059
accent
#E741C2
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3D229B

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

Preview Lab → · Contrast checker → · Palette generator →

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