#1E40A8#1E40A8

#1E40A8 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.172 H 265.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#1E40A8
RGBrgb(30, 64, 168)
HSLhsl(225, 70%, 39%)
HSVhsv(225, 82%, 66%)
CMYKcmyk(82.1%, 61.9%, 0%, 34.1%)
CIE-LABlab(31.27, 27.73, -59.11)
CIE-LCHlch(31.27, 65.30, 295.13°)
OKLaboklab(41.8% -0.0138 -0.171)
OKLCHoklch(41.8% 0.172 265.4)
XYZxyz(9.4342, 6.7688, 37.8475)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E40A8 #A8861E
analogous
#1E85A8 #1E40A8 #411EA8
triadic
#1E40A8 #A81E40 #40A81E
tetradic
#1E40A8 #A81E85 #A8861E #1EA841
square
#1E40A8 #A81E85 #A8861E #1EA841
split-complementary
#1E40A8 #A8411E #85A81E
monochromatic
#0B1840 #152C74 #1E40A8 #2A55D9 #5E7FE2

Accessibility & contrast

On white

8.92
#1E40A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E40A8
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E40A8#FFFFFF#000000##FFFFFF
##1E40A81.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1e40a8;
/* rgb */ color: rgb(30, 64, 168);
/* oklch */ color: oklch(41.8% 0.172 265.4);
Tailwind
colors: {
  custom: {
    50: '#7374c3',
    500: '#1e40a8',
    950: '#000000',
  },
}
SCSS
$custom: #1e40a8;
$custom-light: #7374c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1e40a8",
  "rgb": {
    "r": 30,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 225.217,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41798,
    "c": 0.17159,
    "h": 265.4
  },
  "luminance": 0.0677
}

Semantic roles & 50–950 ramp

primary
#1E40A8
secondary
#C7AC5B
accent
#C13BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1E40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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