#1540A0#1540A0

#1540A0 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.8% C 0.163 H 263.0°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#1540A0
RGBrgb(21, 64, 160)
HSLhsl(221, 77%, 35%)
HSVhsv(221, 87%, 63%)
CMYKcmyk(86.9%, 60%, 0%, 37.3%)
CIE-LABlab(30.31, 23.85, -55.88)
CIE-LCHlch(30.31, 60.76, 293.11°)
OKLaboklab(40.79% -0.0198 -0.1617)
OKLCHoklch(40.79% 0.163 263)
XYZxyz(8.4855, 6.3632, 34.0319)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1540A0 #A07515
analogous
#1585A0 #1540A0 #2F15A0
triadic
#1540A0 #A01540 #40A015
tetradic
#1540A0 #A01585 #A07515 #15A02F
square
#1540A0 #A01585 #A07515 #15A02F
split-complementary
#1540A0 #A02F15 #85A015
monochromatic
#071534 #0E2A6A #1540A0 #1C56D6 #4879E7

Accessibility & contrast

On white

9.24
#1540A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1540A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1540A0
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1540A0#FFFFFF#000000##FFFFFF
##1540A01.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#005969
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1540a0;
/* rgb */ color: rgb(21, 64, 160);
/* oklch */ color: oklch(40.8% 0.163 263.0);
Tailwind
colors: {
  custom: {
    50: '#6e74bd',
    500: '#1540a0',
    950: '#000000',
  },
}
SCSS
$custom: #1540a0;
$custom-light: #6e74bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1540a0",
  "rgb": {
    "r": 21,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 221.439,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40787,
    "c": 0.1629,
    "h": 263
  },
  "luminance": 0.06364
}

Semantic roles & 50–950 ramp

primary
#1540A0
secondary
#C8A149
accent
#B834F3
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1540A0

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

Preview Lab → · Contrast checker → · Palette generator →

#1540A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva