#3E248B#3E248B

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

Color values

HEX#3E248B
RGBrgb(62, 36, 139)
HSLhsl(255, 59%, 34%)
HSVhsv(255, 74%, 55%)
CMYKcmyk(55.4%, 74.1%, 0%, 45.5%)
CIE-LABlab(24.16, 39.20, -52.96)
CIE-LCHlch(24.16, 65.89, 306.51°)
OKLaboklab(36.35% 0.047 -0.1523)
OKLCHoklch(36.35% 0.159 287.1)
XYZxyz(7.2763, 4.1496, 24.8386)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E248B #718B24
analogous
#243D8B #3E248B #72248B
triadic
#3E248B #8B3E24 #248B3E
tetradic
#3E248B #8B243D #718B24 #248B72
square
#3E248B #8B243D #718B24 #248B72
split-complementary
#3E248B #8B7224 #3D8B24
monochromatic
#130B2A #28175A #3E248B #5431BC #7656D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E248B#FFFFFF#000000##FFFFFF
##3E248B1.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)
#003C8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#1E4055
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e248b;
/* rgb */ color: rgb(62, 36, 139);
/* oklch */ color: oklch(36.4% 0.159 287.1);
Tailwind
colors: {
  custom: {
    50: '#7c61ae',
    500: '#3e248b',
    950: '#000000',
  },
}
SCSS
$custom: #3e248b;
$custom-light: #7c61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e248b",
  "rgb": {
    "r": 62,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 255.146,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3635,
    "c": 0.15938,
    "h": 287.1
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#3E248B
secondary
#9EB753
accent
#E246BB
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E248B

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

Preview Lab → · Contrast checker → · Palette generator →

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