#3B248A#3B248A

#3B248A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.158 H 285.6°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#3B248A
RGBrgb(59, 36, 138)
HSLhsl(254, 59%, 34%)
HSVhsv(254, 74%, 54%)
CMYKcmyk(57.2%, 73.9%, 0%, 45.9%)
CIE-LABlab(23.76, 38.42, -53.01)
CIE-LCHlch(23.76, 65.47, 305.93°)
OKLaboklab(35.96% 0.0426 -0.1525)
OKLCHoklch(35.96% 0.158 285.6)
XYZxyz(7.0206, 4.0261, 24.4470)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B248A #738A24
analogous
#24408A #3B248A #6E248A
triadic
#3B248A #8A3B24 #248A3B
tetradic
#3B248A #8A2440 #738A24 #248A6E
square
#3B248A #8A2440 #738A24 #248A6E
split-complementary
#3B248A #8A6E24 #408A24
monochromatic
#110B29 #261759 #3B248A #5031BB #7256D3

Accessibility & contrast

On white

11.63
#3B248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B248A
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B248A#FFFFFF#000000##FFFFFF
##3B248A1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#164054
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b248a;
/* rgb */ color: rgb(59, 36, 138);
/* oklch */ color: oklch(36.0% 0.158 285.6);
Tailwind
colors: {
  custom: {
    50: '#7a61ad',
    500: '#3b248a',
    950: '#000000',
  },
}
SCSS
$custom: #3b248a;
$custom-light: #7a61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3b248a",
  "rgb": {
    "r": 59,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 253.529,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35962,
    "c": 0.15839,
    "h": 285.6
  },
  "luminance": 0.04027
}

Semantic roles & 50–950 ramp

primary
#3B248A
secondary
#A0B753
accent
#E246BF
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3B248A

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

Preview Lab → · Contrast checker → · Palette generator →

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