#3E40AF#3E40AF

#3E40AF is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.173 H 275.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#3E40AF
RGBrgb(62, 64, 175)
HSLhsl(239, 48%, 46%)
HSVhsv(239, 65%, 69%)
CMYKcmyk(64.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(33.53, 34.20, -59.54)
CIE-LCHlch(33.53, 68.67, 299.87°)
OKLaboklab(44.1% 0.0178 -0.1716)
OKLCHoklch(44.1% 0.173 275.9)
XYZxyz(11.5553, 7.7851, 41.4429)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40AF #AFAD3E
analogous
#3E79AF #3E40AF #753EAF
triadic
#3E40AF #AF3E40 #40AF3E
tetradic
#3E40AF #AF3E79 #AFAD3E #3EAF75
square
#3E40AF #AF3E79 #AFAD3E #3EAF75
split-complementary
#3E40AF #AF753E #79AF3E
monochromatic
#1E1F55 #2E2F82 #3E40AF #6364C8 #9091D8

Accessibility & contrast

On white

8.21
#3E40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3E40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40AF
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40AF#FFFFFF#000000##FFFFFF
##3E40AF1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3e40af;
/* rgb */ color: rgb(62, 64, 175);
/* oklch */ color: oklch(44.1% 0.173 275.9);
Tailwind
colors: {
  custom: {
    50: '#8075c8',
    500: '#3e40af',
    950: '#000000',
  },
}
SCSS
$custom: #3e40af;
$custom-light: #8075c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40af",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 238.938,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44095,
    "c": 0.17251,
    "h": 275.9
  },
  "luminance": 0.07786
}

Semantic roles & 50–950 ramp

primary
#3E40AF
secondary
#C3C286
accent
#D551D7
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3E40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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