#3E40A3#3E40A3

#3E40A3 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.156 H 276.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#3E40A3
RGBrgb(62, 64, 163)
HSLhsl(239, 45%, 44%)
HSVhsv(239, 62%, 64%)
CMYKcmyk(62%, 60.7%, 0%, 36.1%)
CIE-LABlab(32.56, 30.07, -53.95)
CIE-LCHlch(32.56, 61.76, 299.14°)
OKLaboklab(43.07% 0.0183 -0.1551)
OKLCHoklch(43.07% 0.156 276.7)
XYZxyz(10.4287, 7.3345, 35.5094)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E40A3 #A3A13E
analogous
#3E73A3 #3E40A3 #6F3EA3
triadic
#3E40A3 #A33E40 #40A33E
tetradic
#3E40A3 #A33E73 #A3A13E #3EA36F
square
#3E40A3 #A33E73 #A3A13E #3EA36F
split-complementary
#3E40A3 #A36F3E #73A33E
monochromatic
#1C1D4A #2D2F77 #3E40A3 #5D5FC1 #898BD2

Accessibility & contrast

On white

8.51
#3E40A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3E40A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E40A3
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E40A3#FFFFFF#000000##FFFFFF
##3E40A31.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3e40a3;
/* rgb */ color: rgb(62, 64, 163);
/* oklch */ color: oklch(43.1% 0.156 276.7);
Tailwind
colors: {
  custom: {
    50: '#7e75bf',
    500: '#3e40a3',
    950: '#000000',
  },
}
SCSS
$custom: #3e40a3;
$custom-light: #7e75bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e40a3",
  "rgb": {
    "r": 62,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 238.812,
    "s": 44.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43074,
    "c": 0.15623,
    "h": 276.7
  },
  "luminance": 0.07335
}

Semantic roles & 50–950 ramp

primary
#3E40A3
secondary
#BDBC80
accent
#D253D5
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3E40A3

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

Preview Lab → · Contrast checker → · Palette generator →

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