#3D238E#3D238E

#3D238E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.164 H 286.1°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#3D238E
RGBrgb(61, 35, 142)
HSLhsl(255, 60%, 35%)
HSVhsv(255, 75%, 56%)
CMYKcmyk(57%, 75.4%, 0%, 44.3%)
CIE-LABlab(24.15, 40.50, -54.85)
CIE-LCHlch(24.15, 68.18, 306.44°)
OKLaboklab(36.41% 0.0456 -0.1578)
OKLCHoklch(36.41% 0.164 286.1)
XYZxyz(7.4065, 4.1467, 25.9961)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D238E #748E23
analogous
#233F8E #3D238E #72238E
triadic
#3D238E #8E3D23 #238E3D
tetradic
#3D238E #8E233F #748E23 #238E72
square
#3D238E #8E233F #748E23 #238E72
split-complementary
#3D238E #8E7223 #3F8E23
monochromatic
#130B2C #28175D #3D238E #522FBF #7556D5

Accessibility & contrast

On white

11.48
#3D238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3D238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D238E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D238E#FFFFFF#000000##FFFFFF
##3D238E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#184056
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d238e;
/* rgb */ color: rgb(61, 35, 142);
/* oklch */ color: oklch(36.4% 0.164 286.1);
Tailwind
colors: {
  custom: {
    50: '#7c61b0',
    500: '#3d238e',
    950: '#000000',
  },
}
SCSS
$custom: #3d238e;
$custom-light: #7c61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d238e",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 254.579,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36407,
    "c": 0.1643,
    "h": 286.1
  },
  "luminance": 0.04147
}

Semantic roles & 50–950 ramp

primary
#3D238E
secondary
#A1B953
accent
#E444BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3D238E

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

Preview Lab → · Contrast checker → · Palette generator →

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