#3D238B#3D238B

#3D238B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.161 H 286.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#3D238B
RGBrgb(61, 35, 139)
HSLhsl(255, 60%, 34%)
HSVhsv(255, 75%, 55%)
CMYKcmyk(56.1%, 74.8%, 0%, 45.5%)
CIE-LABlab(23.86, 39.59, -53.46)
CIE-LCHlch(23.86, 66.52, 306.52°)
OKLaboklab(36.11% 0.0463 -0.1538)
OKLCHoklch(36.11% 0.161 286.8)
XYZxyz(7.1843, 4.0579, 24.8258)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D238B #718B23
analogous
#233D8B #3D238B #71238B
triadic
#3D238B #8B3D23 #238B3D
tetradic
#3D238B #8B233D #718B23 #238B71
square
#3D238B #8B233D #718B23 #238B71
split-complementary
#3D238B #8B7123 #3D8B23
monochromatic
#120A29 #28175A #3D238B #522FBC #7454D4

Accessibility & contrast

On white

11.59
#3D238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3D238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D238B
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D238B#FFFFFF#000000##FFFFFF
##3D238B1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#1B3F55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d238b;
/* rgb */ color: rgb(61, 35, 139);
/* oklch */ color: oklch(36.1% 0.161 286.8);
Tailwind
colors: {
  custom: {
    50: '#7c61ae',
    500: '#3d238b',
    950: '#000000',
  },
}
SCSS
$custom: #3d238b;
$custom-light: #7c61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3d238b",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 255,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36114,
    "c": 0.16059,
    "h": 286.8
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#3D238B
secondary
#9EB852
accent
#E345BB
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D238B

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

Preview Lab → · Contrast checker → · Palette generator →

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