#3E288B#3E288B

#3E288B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.155 H 286.3°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#3E288B
RGBrgb(62, 40, 139)
HSLhsl(253, 55%, 35%)
HSVhsv(253, 71%, 55%)
CMYKcmyk(55.4%, 71.2%, 0%, 45.5%)
CIE-LABlab(24.97, 36.95, -51.64)
CIE-LCHlch(24.97, 63.50, 305.59°)
OKLaboklab(36.93% 0.0434 -0.1484)
OKLCHoklch(36.93% 0.155 286.3)
XYZxyz(7.4042, 4.4054, 24.8813)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E288B #758B28
analogous
#28448B #3E288B #6F288B
triadic
#3E288B #8B3E28 #288B3E
tetradic
#3E288B #8B2844 #758B28 #288B6F
square
#3E288B #8B2844 #758B28 #288B6F
split-complementary
#3E288B #8B6F28 #448B28
monochromatic
#140D2C #291A5B #3E288B #5336BB #775DD0

Accessibility & contrast

On white

11.16
#3E288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3E288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E288B
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E288B#FFFFFF#000000##FFFFFF
##3E288B1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#1E4256
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e288b;
/* rgb */ color: rgb(62, 40, 139);
/* oklch */ color: oklch(36.9% 0.155 286.3);
Tailwind
colors: {
  custom: {
    50: '#7c64ae',
    500: '#3e288b',
    950: '#000000',
  },
}
SCSS
$custom: #3e288b;
$custom-light: #7c64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e288b",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 253.333,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36926,
    "c": 0.15464,
    "h": 286.3
  },
  "luminance": 0.04406
}

Semantic roles & 50–950 ramp

primary
#3E288B
secondary
#A1B659
accent
#DF49BD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3E288B

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

Preview Lab → · Contrast checker → · Palette generator →

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