#3D238D#3D238D

#3D238D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.163 H 286.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#3D238D
RGBrgb(61, 35, 141)
HSLhsl(255, 60%, 35%)
HSVhsv(255, 75%, 55%)
CMYKcmyk(56.7%, 75.2%, 0%, 44.7%)
CIE-LABlab(24.05, 40.20, -54.39)
CIE-LCHlch(24.05, 67.63, 306.47°)
OKLaboklab(36.31% 0.0458 -0.1565)
OKLCHoklch(36.31% 0.163 286.3)
XYZxyz(7.3318, 4.1168, 25.6024)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D238D #738D23
analogous
#233E8D #3D238D #72238D
triadic
#3D238D #8D3D23 #238D3D
tetradic
#3D238D #8D233E #738D23 #238D72
square
#3D238D #8D233E #738D23 #238D72
split-complementary
#3D238D #8D7223 #3E8D23
monochromatic
#130B2B #28175C #3D238D #522FBE #7555D5

Accessibility & contrast

On white

11.52
#3D238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3D238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D238D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D238D#FFFFFF#000000##FFFFFF
##3D238D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#194056
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d238d;
/* rgb */ color: rgb(61, 35, 141);
/* oklch */ color: oklch(36.3% 0.163 286.3);
Tailwind
colors: {
  custom: {
    50: '#7c61af',
    500: '#3d238d',
    950: '#000000',
  },
}
SCSS
$custom: #3d238d;
$custom-light: #7c61af;
$custom-dark: #000000;
JSON
{
  "hex": "#3d238d",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 254.717,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36309,
    "c": 0.16307,
    "h": 286.3
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#3D238D
secondary
#A0B953
accent
#E344BC
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D238D

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

Preview Lab → · Contrast checker → · Palette generator →

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