#3E40B4#3E40B4

#3E40B4 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.179 H 275.6°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#3E40B4
RGBrgb(62, 64, 180)
HSLhsl(239, 49%, 47%)
HSVhsv(239, 66%, 71%)
CMYKcmyk(65.6%, 64.4%, 0%, 29.4%)
CIE-LABlab(33.95, 35.91, -61.83)
CIE-LCHlch(33.95, 71.50, 300.15°)
OKLaboklab(44.53% 0.0174 -0.1783)
OKLCHoklch(44.53% 0.179 275.6)
XYZxyz(12.0555, 7.9852, 44.0772)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40B4 #B4B23E
analogous
#3E7BB4 #3E40B4 #773EB4
triadic
#3E40B4 #B43E40 #40B43E
tetradic
#3E40B4 #B43E7B #B4B23E #3EB477
square
#3E40B4 #B43E7B #B4B23E #3EB477
split-complementary
#3E40B4 #B4773E #7BB43E
monochromatic
#1F2059 #2E3086 #3E40B4 #6567CA #9394DA

Accessibility & contrast

On white

8.09
#3E40B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3E40B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40B4
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40B4#FFFFFF#000000##FFFFFF
##3E40B41.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3e40b4;
/* rgb */ color: rgb(62, 64, 180);
/* oklch */ color: oklch(44.5% 0.179 275.6);
Tailwind
colors: {
  custom: {
    50: '#8175cb',
    500: '#3e40b4',
    950: '#000000',
  },
}
SCSS
$custom: #3e40b4;
$custom-light: #8175cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40b4",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 238.983,
    "s": 48.76,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44534,
    "c": 0.17914,
    "h": 275.6
  },
  "luminance": 0.07986
}

Semantic roles & 50–950 ramp

primary
#3E40B4
secondary
#C5C489
accent
#D64FD8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #3E40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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