#3E339F#3E339F

#3E339F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.167 H 280.5°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#3E339F
RGBrgb(62, 51, 159)
HSLhsl(246, 51%, 41%)
HSVhsv(246, 68%, 62%)
CMYKcmyk(61%, 67.9%, 0%, 37.6%)
CIE-LABlab(29.14, 36.85, -57.10)
CIE-LCHlch(29.14, 67.96, 302.84°)
OKLaboklab(40.48% 0.0304 -0.1645)
OKLCHoklch(40.48% 0.167 280.5)
XYZxyz(9.4265, 5.8943, 33.4351)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E339F #949F33
analogous
#335E9F #3E339F #74339F
triadic
#3E339F #9F3E33 #339F3E
tetradic
#3E339F #9F335E #949F33 #339F74
square
#3E339F #9F335E #949F33 #339F74
split-complementary
#3E339F #9F7433 #5E9F33
monochromatic
#1A1542 #2C2471 #3E339F #574AC5 #8279D4

Accessibility & contrast

On white

9.64
#3E339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E339F
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E339F#FFFFFF#000000##FFFFFF
##3E339F1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3e339f;
/* rgb */ color: rgb(62, 51, 159);
/* oklch */ color: oklch(40.5% 0.167 280.5);
Tailwind
colors: {
  custom: {
    50: '#7e6cbc',
    500: '#3e339f',
    950: '#000000',
  },
}
SCSS
$custom: #3e339f;
$custom-light: #7e6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#3e339f",
  "rgb": {
    "r": 62,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 246.111,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40479,
    "c": 0.16723,
    "h": 280.5
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#3E339F
secondary
#B5BC71
accent
#DB4DCC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3E339F

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

Preview Lab → · Contrast checker → · Palette generator →

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