#1E40A7#1E40A7

#1E40A7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.170 H 265.4°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#1E40A7
RGBrgb(30, 64, 167)
HSLhsl(225, 70%, 39%)
HSVhsv(225, 82%, 65%)
CMYKcmyk(82%, 61.7%, 0%, 34.5%)
CIE-LABlab(31.19, 27.35, -58.66)
CIE-LCHlch(31.19, 64.72, 295.00°)
OKLaboklab(41.71% -0.0138 -0.1697)
OKLCHoklch(41.71% 0.17 265.4)
XYZxyz(9.3414, 6.7317, 37.3587)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E40A7 #A7851E
analogous
#1E84A7 #1E40A7 #401EA7
triadic
#1E40A7 #A71E40 #40A71E
tetradic
#1E40A7 #A71E84 #A7851E #1EA740
square
#1E40A7 #A71E84 #A7851E #1EA740
split-complementary
#1E40A7 #A7401E #84A71E
monochromatic
#0B183F #152C73 #1E40A7 #2A55D9 #5D7EE2

Accessibility & contrast

On white

8.95
#1E40A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#1E40A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E40A7
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E40A7#FFFFFF#000000##FFFFFF
##1E40A71.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1e40a7;
/* rgb */ color: rgb(30, 64, 167);
/* oklch */ color: oklch(41.7% 0.170 265.4);
Tailwind
colors: {
  custom: {
    50: '#7374c2',
    500: '#1e40a7',
    950: '#000000',
  },
}
SCSS
$custom: #1e40a7;
$custom-light: #7374c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1e40a7",
  "rgb": {
    "r": 30,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 225.109,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41707,
    "c": 0.17025,
    "h": 265.4
  },
  "luminance": 0.06733
}

Semantic roles & 50–950 ramp

primary
#1E40A7
secondary
#C6AC5B
accent
#C03BEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1E40A7

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

Preview Lab → · Contrast checker → · Palette generator →

#1E40A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva