#3D148E#3D148E

#3D148E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.7% C 0.178 H 288.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#3D148E
RGBrgb(61, 20, 142)
HSLhsl(260, 75%, 32%)
HSVhsv(260, 86%, 56%)
CMYKcmyk(57%, 85.9%, 0%, 44.3%)
CIE-LABlab(21.74, 47.45, -58.81)
CIE-LCHlch(21.74, 75.56, 308.90°)
OKLaboklab(34.73% 0.0559 -0.1693)
OKLCHoklch(34.73% 0.178 288.3)
XYZxyz(7.0557, 3.4450, 25.8791)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D148E #658E14
analogous
#14288E #3D148E #7A148E
triadic
#3D148E #8E3D14 #148E3D
tetradic
#3D148E #8E1428 #658E14 #148E7A
square
#3D148E #8E1428 #658E14 #148E7A
split-complementary
#3D148E #8E7A14 #288E14
monochromatic
#0F0523 #260C58 #3D148E #541CC4 #7239E3

Accessibility & contrast

On white

12.43
#3D148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3D148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D148E
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D148E#FFFFFF#000000##FFFFFF
##3D148E1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#193A53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3d148e;
/* rgb */ color: rgb(61, 20, 142);
/* oklch */ color: oklch(34.7% 0.178 288.3);
Tailwind
colors: {
  custom: {
    50: '#7d59b0',
    500: '#3d148e',
    950: '#000000',
  },
}
SCSS
$custom: #3d148e;
$custom-light: #7d59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d148e",
  "rgb": {
    "r": 61,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 260.164,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34732,
    "c": 0.17825,
    "h": 288.3
  },
  "luminance": 0.03445
}

Semantic roles & 50–950 ramp

primary
#3D148E
secondary
#95C23C
accent
#F236B3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3D148E

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

Preview Lab → · Contrast checker → · Palette generator →

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