#3E339B#3E339B

#3E339B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.162 H 281.0°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#3E339B
RGBrgb(62, 51, 155)
HSLhsl(246, 50%, 40%)
HSVhsv(246, 67%, 61%)
CMYKcmyk(60%, 67.1%, 0%, 39.2%)
CIE-LABlab(28.79, 35.54, -55.24)
CIE-LCHlch(28.79, 65.68, 302.76°)
OKLaboklab(40.12% 0.0309 -0.159)
OKLCHoklch(40.12% 0.162 281)
XYZxyz(9.0850, 5.7577, 31.6366)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E339B #909B33
analogous
#335C9B #3E339B #72339B
triadic
#3E339B #9B3E33 #339B3E
tetradic
#3E339B #9B335C #909B33 #339B72
square
#3E339B #9B335C #909B33 #339B72
split-complementary
#3E339B #9B7233 #5C9B33
monochromatic
#19153F #2C246D #3E339B #5548C3 #8076D2

Accessibility & contrast

On white

9.76
#3E339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#3E339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E339B
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E339B#FFFFFF#000000##FFFFFF
##3E339B1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3e339b;
/* rgb */ color: rgb(62, 51, 155);
/* oklch */ color: oklch(40.1% 0.162 281.0);
Tailwind
colors: {
  custom: {
    50: '#7e6cb9',
    500: '#3e339b',
    950: '#000000',
  },
}
SCSS
$custom: #3e339b;
$custom-light: #7e6cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e339b",
  "rgb": {
    "r": 62,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 246.346,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40116,
    "c": 0.16197,
    "h": 281
  },
  "luminance": 0.05758
}

Semantic roles & 50–950 ramp

primary
#3E339B
secondary
#B2BA6F
accent
#DA4ECB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3E339B

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

Preview Lab → · Contrast checker → · Palette generator →

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