#3B248E#3B248E

#3B248E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.163 H 284.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#3B248E
RGBrgb(59, 36, 142)
HSLhsl(253, 60%, 35%)
HSVhsv(253, 75%, 56%)
CMYKcmyk(58.5%, 74.6%, 0%, 44.3%)
CIE-LABlab(24.14, 39.66, -54.87)
CIE-LCHlch(24.14, 67.70, 305.86°)
OKLaboklab(36.35% 0.0417 -0.158)
OKLCHoklch(36.35% 0.163 284.8)
XYZxyz(7.3155, 4.1441, 26.0004)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B248E #778E24
analogous
#24428E #3B248E #70248E
triadic
#3B248E #8E3B24 #248E3B
tetradic
#3B248E #8E2442 #778E24 #248E70
square
#3B248E #8E2442 #778E24 #248E70
split-complementary
#3B248E #8E7024 #428E24
monochromatic
#120B2C #27185D #3B248E #4F30BF #7358D5

Accessibility & contrast

On white

11.48
#3B248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3B248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B248E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B248E#FFFFFF#000000##FFFFFF
##3B248E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#104157
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b248e;
/* rgb */ color: rgb(59, 36, 142);
/* oklch */ color: oklch(36.4% 0.163 284.8);
Tailwind
colors: {
  custom: {
    50: '#7b61b0',
    500: '#3b248e',
    950: '#000000',
  },
}
SCSS
$custom: #3b248e;
$custom-light: #7b61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b248e",
  "rgb": {
    "r": 59,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 253.019,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36352,
    "c": 0.1634,
    "h": 284.8
  },
  "luminance": 0.04145
}

Semantic roles & 50–950 ramp

primary
#3B248E
secondary
#A3B955
accent
#E345C1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3B248E

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

Preview Lab → · Contrast checker → · Palette generator →

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