#1E2240#1E2240

#1E2240 is a dark, muted blue. Relative luminance 0.018; OKLCH L 26.5% C 0.056 H 276.1°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#1E2240
RGBrgb(30, 34, 64)
HSLhsl(233, 36%, 18%)
HSVhsv(233, 53%, 25%)
CMYKcmyk(53.1%, 46.9%, 0%, 74.9%)
CIE-LABlab(14.34, 7.99, -19.72)
CIE-LCHlch(14.34, 21.28, 292.05°)
OKLaboklab(26.46% 0.006 -0.0557)
OKLCHoklch(26.46% 0.056 276.1)
XYZxyz(2.0326, 1.7901, 5.0879)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2240 #403C1E
analogous
#1E3340 #1E2240 #2B1E40
triadic
#1E2240 #401E22 #22401E
tetradic
#1E2240 #401E33 #403C1E #1E402B
square
#1E2240 #401E33 #403C1E #1E402B
split-complementary
#1E2240 #402B1E #33401E
monochromatic
#0A0B15 #0A0C16 #1E2240 #32386A #454E93

Accessibility & contrast

On white

15.46
#1E2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1E2240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2240
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2240#FFFFFF#000000##FFFFFF
##1E22401.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172641
Deuteranopia (green-blind)
#14233F
Tritanopia (blue-blind)
#12282D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1e2240;
/* rgb */ color: rgb(30, 34, 64);
/* oklch */ color: oklch(26.5% 0.056 276.1);
Tailwind
colors: {
  custom: {
    50: '#5c5c75',
    500: '#1e2240',
    950: '#000000',
  },
}
SCSS
$custom: #1e2240;
$custom-light: #5c5c75;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2240",
  "rgb": {
    "r": 30,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 232.941,
    "s": 36.17,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26459,
    "c": 0.05607,
    "h": 276.1
  },
  "luminance": 0.0179
}

Semantic roles & 50–950 ramp

primary
#1E2240
secondary
#746F45
accent
#BF5CCC
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040408
muted
#79797B

Preview Lab

Preview with #1E2240

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

Preview Lab → · Contrast checker → · Palette generator →

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