#3D248F#3D248F

#3D248F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.164 H 285.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#3D248F
RGBrgb(61, 36, 143)
HSLhsl(254, 60%, 35%)
HSVhsv(254, 75%, 56%)
CMYKcmyk(57.3%, 74.8%, 0%, 43.9%)
CIE-LABlab(24.44, 40.27, -55.00)
CIE-LCHlch(24.44, 68.16, 306.21°)
OKLaboklab(36.64% 0.0445 -0.1583)
OKLCHoklch(36.64% 0.164 285.7)
XYZxyz(7.5118, 4.2366, 26.4032)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D248F #768F24
analogous
#24408F #3D248F #73248F
triadic
#3D248F #8F3D24 #248F3D
tetradic
#3D248F #8F2440 #768F24 #248F73
square
#3D248F #8F2440 #768F24 #248F73
split-complementary
#3D248F #8F7324 #408F24
monochromatic
#130B2D #28185E #3D248F #5230C0 #7558D5

Accessibility & contrast

On white

11.37
#3D248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3D248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D248F
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D248F#FFFFFF#000000##FFFFFF
##3D248F1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#164157
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3d248f;
/* rgb */ color: rgb(61, 36, 143);
/* oklch */ color: oklch(36.6% 0.164 285.7);
Tailwind
colors: {
  custom: {
    50: '#7c61b1',
    500: '#3d248f',
    950: '#000000',
  },
}
SCSS
$custom: #3d248f;
$custom-light: #7c61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d248f",
  "rgb": {
    "r": 61,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 254.019,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36639,
    "c": 0.16443,
    "h": 285.7
  },
  "luminance": 0.04237
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D248F

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

Preview Lab → · Contrast checker → · Palette generator →

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