#3E338F#3E338F

#3E338F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.146 H 282.7°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#3E338F
RGBrgb(62, 51, 143)
HSLhsl(247, 47%, 38%)
HSVhsv(247, 64%, 56%)
CMYKcmyk(56.6%, 64.3%, 0%, 43.9%)
CIE-LABlab(27.78, 31.58, -49.54)
CIE-LCHlch(27.78, 58.75, 302.52°)
OKLaboklab(39.06% 0.0321 -0.1423)
OKLCHoklch(39.06% 0.146 282.7)
XYZxyz(8.1268, 5.3745, 26.5904)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E338F #848F33
analogous
#33568F #3E338F #6C338F
triadic
#3E338F #8F3E33 #338F3E
tetradic
#3E338F #8F3356 #848F33 #338F6C
square
#3E338F #8F3356 #848F33 #338F6C
split-complementary
#3E338F #8F6C33 #568F33
monochromatic
#171335 #2A2362 #3E338F #5243BC #7B70CC

Accessibility & contrast

On white

10.12
#3E338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3E338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E338F
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E338F#FFFFFF#000000##FFFFFF
##3E338F1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#174A5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3e338f;
/* rgb */ color: rgb(62, 51, 143);
/* oklch */ color: oklch(39.1% 0.146 282.7);
Tailwind
colors: {
  custom: {
    50: '#7b6bb1',
    500: '#3e338f',
    950: '#000000',
  },
}
SCSS
$custom: #3e338f;
$custom-light: #7b6bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e338f",
  "rgb": {
    "r": 62,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 247.174,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39061,
    "c": 0.14584,
    "h": 282.7
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#3E338F
secondary
#ABB46A
accent
#D751C7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3E338F

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

Preview Lab → · Contrast checker → · Palette generator →

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