#1538CA#1538CA

#1538CA is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 43.5% C 0.225 H 265.5°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#1538CA
RGBrgb(21, 56, 202)
HSLhsl(228, 81%, 44%)
HSVhsv(228, 90%, 79%)
CMYKcmyk(89.6%, 72.3%, 0%, 20.8%)
CIE-LABlab(32.37, 44.96, -77.43)
CIE-LCHlch(32.37, 89.53, 300.14°)
OKLaboklab(43.51% -0.0178 -0.2246)
OKLCHoklch(43.51% 0.225 265.5)
XYZxyz(12.3804, 7.2504, 56.6126)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1538CA #CAA715
analogous
#1592CA #1538CA #4C15CA
triadic
#1538CA #CA1538 #38CA15
tetradic
#1538CA #CA1592 #CAA715 #15CA4C
square
#1538CA #CA1592 #CAA715 #15CA4C
split-complementary
#1538CA #CA4C15 #92CA15
monochromatic
#09195B #0F2993 #1538CA #3256EA #6A84EF

Accessibility & contrast

On white

8.57
#1538CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1538CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1538CA
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1538CA#FFFFFF#000000##FFFFFF
##1538CA1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CE
Deuteranopia (green-blind)
#0043C7
Tritanopia (blue-blind)
#00627E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1538ca;
/* rgb */ color: rgb(21, 56, 202);
/* oklch */ color: oklch(43.5% 0.225 265.5);
Tailwind
colors: {
  custom: {
    50: '#7b6fdc',
    500: '#1538ca',
    950: '#000000',
  },
}
SCSS
$custom: #1538ca;
$custom-light: #7b6fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#1538ca",
  "rgb": {
    "r": 21,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 228.398,
    "s": 81.166,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43511,
    "c": 0.22531,
    "h": 265.5
  },
  "luminance": 0.07252
}

Semantic roles & 50–950 ramp

primary
#1538CA
secondary
#D5BF66
accent
#D130F8
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #1538CA

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

Preview Lab → · Contrast checker → · Palette generator →

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