#3E397B#3E397B

#3E397B is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.6% C 0.108 H 283.5°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#3E397B
RGBrgb(62, 57, 123)
HSLhsl(245, 37%, 35%)
HSVhsv(245, 54%, 48%)
CMYKcmyk(49.6%, 53.7%, 0%, 51.8%)
CIE-LABlab(27.79, 21.06, -37.05)
CIE-LCHlch(27.79, 42.62, 299.62°)
OKLaboklab(38.6% 0.0253 -0.1055)
OKLCHoklch(38.6% 0.108 283.5)
XYZxyz(7.0238, 5.3801, 19.4034)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E397B #767B39
analogous
#39557B #3E397B #5F397B
triadic
#3E397B #7B3E39 #397B3E
tetradic
#3E397B #7B3955 #767B39 #397B5F
square
#3E397B #7B3955 #767B39 #397B5F
split-complementary
#3E397B #7B5F39 #557B39
monochromatic
#141227 #292651 #3E397B #534CA5 #7771BD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E397B#FFFFFF#000000##FFFFFF
##3E397B1.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)
#19447D
Deuteranopia (green-blind)
#153F7A
Tritanopia (blue-blind)
#294754
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3e397b;
/* rgb */ color: rgb(62, 57, 123);
/* oklch */ color: oklch(38.6% 0.108 283.5);
Tailwind
colors: {
  custom: {
    50: '#786fa2',
    500: '#3e397b',
    950: '#000000',
  },
}
SCSS
$custom: #3e397b;
$custom-light: #786fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e397b",
  "rgb": {
    "r": 62,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 244.545,
    "s": 36.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38596,
    "c": 0.10849,
    "h": 283.5
  },
  "luminance": 0.0538
}

Semantic roles & 50–950 ramp

primary
#3E397B
secondary
#A2A669
accent
#CD5BC4
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #3E397B

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

Preview Lab → · Contrast checker → · Palette generator →

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