#1540CA#1540CA

#1540CA is a dark, highly saturated blue. Relative luminance 0.081; OKLCH L 44.8% C 0.217 H 264.7°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#1540CA
RGBrgb(21, 64, 202)
HSLhsl(226, 81%, 44%)
HSVhsv(226, 90%, 79%)
CMYKcmyk(89.6%, 68.3%, 0%, 20.8%)
CIE-LABlab(34.17, 40.05, -74.46)
CIE-LCHlch(34.17, 84.55, 298.27°)
OKLaboklab(44.81% -0.02 -0.216)
OKLCHoklch(44.81% 0.217 264.7)
XYZxyz(12.7996, 8.0888, 56.7523)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1540CA #CA9F15
analogous
#159ACA #1540CA #4415CA
triadic
#1540CA #CA1540 #40CA15
tetradic
#1540CA #CA159A #CA9F15 #15CA44
square
#1540CA #CA159A #CA9F15 #15CA44
split-complementary
#1540CA #CA4415 #9ACA15
monochromatic
#091D5B #0F2E93 #1540CA #325EEA #6A8AEF

Accessibility & contrast

On white

8.02
#1540CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#1540CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1540CA
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1540CA#FFFFFF#000000##FFFFFF
##1540CA1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0048C8
Tritanopia (blue-blind)
#006780
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1540ca;
/* rgb */ color: rgb(21, 64, 202);
/* oklch */ color: oklch(44.8% 0.217 264.7);
Tailwind
colors: {
  custom: {
    50: '#7a75db',
    500: '#1540ca',
    950: '#000000',
  },
}
SCSS
$custom: #1540ca;
$custom-light: #7a75db;
$custom-dark: #000000;
JSON
{
  "hex": "#1540ca",
  "rgb": {
    "r": 21,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 225.746,
    "s": 81.166,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44813,
    "c": 0.2169,
    "h": 264.7
  },
  "luminance": 0.0809
}

Semantic roles & 50–950 ramp

primary
#1540CA
secondary
#D5BB66
accent
#C830F8
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0B0815
muted
#7C7B83

Preview Lab

Preview with #1540CA

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

Preview Lab → · Contrast checker → · Palette generator →

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