#3D248E#3D248E

#3D248E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.163 H 285.9°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3D248E
RGBrgb(61, 36, 142)
HSLhsl(254, 60%, 35%)
HSVhsv(254, 75%, 56%)
CMYKcmyk(57%, 74.6%, 0%, 44.3%)
CIE-LABlab(24.34, 39.96, -54.53)
CIE-LCHlch(24.34, 67.61, 306.23°)
OKLaboklab(36.54% 0.0448 -0.1569)
OKLCHoklch(36.54% 0.163 285.9)
XYZxyz(7.4364, 4.2064, 26.0060)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D248E #758E24
analogous
#24408E #3D248E #72248E
triadic
#3D248E #8E3D24 #248E3D
tetradic
#3D248E #8E2440 #758E24 #248E72
square
#3D248E #8E2440 #758E24 #248E72
split-complementary
#3D248E #8E7224 #408E24
monochromatic
#130B2C #28185D #3D248E #5230BF #7558D5

Accessibility & contrast

On white

11.40
#3D248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3D248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D248E
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D248E#FFFFFF#000000##FFFFFF
##3D248E1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#184157
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d248e;
/* rgb */ color: rgb(61, 36, 142);
/* oklch */ color: oklch(36.5% 0.163 285.9);
Tailwind
colors: {
  custom: {
    50: '#7c61b0',
    500: '#3d248e',
    950: '#000000',
  },
}
SCSS
$custom: #3d248e;
$custom-light: #7c61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d248e",
  "rgb": {
    "r": 61,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 254.151,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36542,
    "c": 0.1632,
    "h": 285.9
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#3D248E
secondary
#A1B955
accent
#E345BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3D248E

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

Preview Lab → · Contrast checker → · Palette generator →

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