#3D228A#3D228A

#3D228A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.160 H 287.2°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#3D228A
RGBrgb(61, 34, 138)
HSLhsl(256, 60%, 34%)
HSVhsv(256, 75%, 54%)
CMYKcmyk(55.8%, 75.4%, 0%, 45.9%)
CIE-LABlab(23.57, 39.82, -53.30)
CIE-LCHlch(23.57, 66.54, 306.76°)
OKLaboklab(35.88% 0.0474 -0.1533)
OKLCHoklch(35.88% 0.16 287.2)
XYZxyz(7.0826, 3.9708, 24.4331)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D228A #6F8A22
analogous
#223B8A #3D228A #71228A
triadic
#3D228A #8A3D22 #228A3D
tetradic
#3D228A #8A223B #6F8A22 #228A71
square
#3D228A #8A223B #6F8A22 #228A71
split-complementary
#3D228A #8A7122 #3B8A22
monochromatic
#120A28 #271659 #3D228A #532EBB #7452D4

Accessibility & contrast

On white

11.70
#3D228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3D228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D228A
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D228A#FFFFFF#000000##FFFFFF
##3D228A1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#1C3E54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d228a;
/* rgb */ color: rgb(61, 34, 138);
/* oklch */ color: oklch(35.9% 0.160 287.2);
Tailwind
colors: {
  custom: {
    50: '#7b60ad',
    500: '#3d228a',
    950: '#000000',
  },
}
SCSS
$custom: #3d228a;
$custom-light: #7b60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3d228a",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 255.577,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35882,
    "c": 0.16048,
    "h": 287.2
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

primary
#3D228A
secondary
#9DB850
accent
#E444BA
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D228A

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

Preview Lab → · Contrast checker → · Palette generator →

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