#3E2FA8#3E2FA8

#3E2FA8 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.183 H 280.1°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#3E2FA8
RGBrgb(62, 47, 168)
HSLhsl(247, 56%, 42%)
HSVhsv(247, 72%, 66%)
CMYKcmyk(63.1%, 72%, 0%, 34.1%)
CIE-LABlab(29.12, 42.11, -62.58)
CIE-LCHlch(29.12, 75.43, 303.94°)
OKLaboklab(40.71% 0.032 -0.1805)
OKLCHoklch(40.71% 0.183 280.1)
XYZxyz(10.0688, 5.8836, 37.6432)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2FA8 #99A82F
analogous
#2F5DA8 #3E2FA8 #7B2FA8
triadic
#3E2FA8 #A83E2F #2FA83E
tetradic
#3E2FA8 #A82F5D #99A82F #2FA87B
square
#3E2FA8 #A82F5D #99A82F #2FA87B
split-complementary
#3E2FA8 #A87B2F #5DA82F
monochromatic
#1B1448 #2C2278 #3E2FA8 #5948CC #8478D9

Accessibility & contrast

On white

9.65
#3E2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3E2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2FA8
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2FA8#FFFFFF#000000##FFFFFF
##3E2FA81.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3e2fa8;
/* rgb */ color: rgb(62, 47, 168);
/* oklch */ color: oklch(40.7% 0.183 280.1);
Tailwind
colors: {
  custom: {
    50: '#8069c3',
    500: '#3e2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #3e2fa8;
$custom-light: #8069c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2fa8",
  "rgb": {
    "r": 62,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 247.438,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40712,
    "c": 0.18333,
    "h": 280.1
  },
  "luminance": 0.05884
}

Semantic roles & 50–950 ramp

primary
#3E2FA8
secondary
#B8C171
accent
#E048CD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3E2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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