#1542CA#1542CA

#1542CA is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.2% C 0.215 H 264.5°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#1542CA
RGBrgb(21, 66, 202)
HSLhsl(225, 81%, 44%)
HSVhsv(225, 90%, 79%)
CMYKcmyk(89.6%, 67.3%, 0%, 20.8%)
CIE-LABlab(34.64, 38.78, -73.69)
CIE-LCHlch(34.64, 83.27, 297.76°)
OKLaboklab(45.16% -0.0207 -0.2137)
OKLCHoklch(45.16% 0.215 264.5)
XYZxyz(12.9144, 8.3184, 56.7906)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1542CA #CA9D15
analogous
#159CCA #1542CA #4215CA
triadic
#1542CA #CA1542 #42CA15
tetradic
#1542CA #CA159C #CA9D15 #15CA42
square
#1542CA #CA159C #CA9D15 #15CA42
split-complementary
#1542CA #CA4215 #9CCA15
monochromatic
#091E5B #0F3093 #1542CA #3260EA #6A8BEF

Accessibility & contrast

On white

7.88
#1542CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#1542CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1542CA
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1542CA#FFFFFF#000000##FFFFFF
##1542CA1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0049C8
Tritanopia (blue-blind)
#006880
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1542ca;
/* rgb */ color: rgb(21, 66, 202);
/* oklch */ color: oklch(45.2% 0.215 264.5);
Tailwind
colors: {
  custom: {
    50: '#7a76db',
    500: '#1542ca',
    950: '#000000',
  },
}
SCSS
$custom: #1542ca;
$custom-light: #7a76db;
$custom-dark: #000000;
JSON
{
  "hex": "#1542ca",
  "rgb": {
    "r": 21,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 225.083,
    "s": 81.166,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45157,
    "c": 0.21471,
    "h": 264.5
  },
  "luminance": 0.0832
}

Semantic roles & 50–950 ramp

primary
#1542CA
secondary
#D5B966
accent
#C630F8
background
#F8F7FD
surface
#EFEDFB
border
#CAC8D4
text
#0B0815
muted
#7C7B83

Preview Lab

Preview with #1542CA

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

Preview Lab → · Contrast checker → · Palette generator →

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