#3E41A5#3E41A5

#3E41A5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.158 H 276.3°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#3E41A5
RGBrgb(62, 65, 165)
HSLhsl(238, 45%, 45%)
HSVhsv(238, 62%, 65%)
CMYKcmyk(62.4%, 60.6%, 0%, 35.3%)
CIE-LABlab(32.96, 30.12, -54.49)
CIE-LCHlch(32.96, 62.26, 298.93°)
OKLaboklab(43.43% 0.0173 -0.1567)
OKLCHoklch(43.43% 0.158 276.3)
XYZxyz(10.6662, 7.5205, 36.4795)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E41A5 #A5A23E
analogous
#3E75A5 #3E41A5 #6E3EA5
triadic
#3E41A5 #A53E41 #41A53E
tetradic
#3E41A5 #A53E75 #A5A23E #3EA56E
square
#3E41A5 #A53E75 #A5A23E #3EA56E
split-complementary
#3E41A5 #A56E3E #75A53E
monochromatic
#1D1E4C #2D2F79 #3E41A5 #5E61C2 #8A8CD3

Accessibility & contrast

On white

8.39
#3E41A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#3E41A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E41A5
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E41A5#FFFFFF#000000##FFFFFF
##3E41A51.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#0049A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3e41a5;
/* rgb */ color: rgb(62, 65, 165);
/* oklch */ color: oklch(43.4% 0.158 276.3);
Tailwind
colors: {
  custom: {
    50: '#7e75c0',
    500: '#3e41a5',
    950: '#000000',
  },
}
SCSS
$custom: #3e41a5;
$custom-light: #7e75c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e41a5",
  "rgb": {
    "r": 62,
    "g": 65,
    "b": 165
  },
  "hsl": {
    "h": 238.252,
    "s": 45.374,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43425,
    "c": 0.15769,
    "h": 276.3
  },
  "luminance": 0.07521
}

Semantic roles & 50–950 ramp

primary
#3E41A5
secondary
#BEBC81
accent
#D153D5
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3E41A5

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

Preview Lab → · Contrast checker → · Palette generator →

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