#3E338E#3E338E

#3E338E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.144 H 282.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#3E338E
RGBrgb(62, 51, 142)
HSLhsl(247, 47%, 38%)
HSVhsv(247, 64%, 56%)
CMYKcmyk(56.3%, 64.1%, 0%, 44.3%)
CIE-LABlab(27.69, 31.25, -49.05)
CIE-LCHlch(27.69, 58.16, 302.50°)
OKLaboklab(38.98% 0.0322 -0.1408)
OKLCHoklch(38.98% 0.144 282.9)
XYZxyz(8.0514, 5.3443, 26.1932)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E338E #838E33
analogous
#33558E #3E338E #6B338E
triadic
#3E338E #8E3E33 #338E3E
tetradic
#3E338E #8E3355 #838E33 #338E6B
square
#3E338E #8E3355 #838E33 #338E6B
split-complementary
#3E338E #8E6B33 #558E33
monochromatic
#171334 #2A2361 #3E338E #5243BB #7B70CC

Accessibility & contrast

On white

10.15
#3E338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3E338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E338E
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E338E#FFFFFF#000000##FFFFFF
##3E338E1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#19495B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3e338e;
/* rgb */ color: rgb(62, 51, 142);
/* oklch */ color: oklch(39.0% 0.144 282.9);
Tailwind
colors: {
  custom: {
    50: '#7b6bb0',
    500: '#3e338e',
    950: '#000000',
  },
}
SCSS
$custom: #3e338e;
$custom-light: #7b6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e338e",
  "rgb": {
    "r": 62,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 247.253,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38975,
    "c": 0.14447,
    "h": 282.9
  },
  "luminance": 0.05345
}

Semantic roles & 50–950 ramp

primary
#3E338E
secondary
#ABB469
accent
#D751C7
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3E338E

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

Preview Lab → · Contrast checker → · Palette generator →

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