#1538B4#1538B4

#1538B4 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.198 H 265.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#1538B4
RGBrgb(21, 56, 180)
HSLhsl(227, 79%, 39%)
HSVhsv(227, 88%, 71%)
CMYKcmyk(88.3%, 68.9%, 0%, 29.4%)
CIE-LABlab(30.11, 36.96, -68.20)
CIE-LCHlch(30.11, 77.57, 298.45°)
OKLaboklab(41.2% -0.0164 -0.1978)
OKLCHoklch(41.2% 0.198 265.3)
XYZxyz(9.9587, 6.2818, 43.8588)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1538B4 #B49115
analogous
#1588B4 #1538B4 #4115B4
triadic
#1538B4 #B41538 #38B415
tetradic
#1538B4 #B41588 #B49115 #15B441
square
#1538B4 #B41588 #B49115 #15B441
split-complementary
#1538B4 #B44115 #88B415
monochromatic
#081646 #0F277D #1538B4 #214CE5 #5878EC

Accessibility & contrast

On white

9.31
#1538B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1538B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1538B4
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1538B4#FFFFFF#000000##FFFFFF
##1538B41.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#003FB2
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1538b4;
/* rgb */ color: rgb(21, 56, 180);
/* oklch */ color: oklch(41.2% 0.198 265.3);
Tailwind
colors: {
  custom: {
    50: '#756ecc',
    500: '#1538b4',
    950: '#000000',
  },
}
SCSS
$custom: #1538b4;
$custom-light: #756ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#1538b4",
  "rgb": {
    "r": 21,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 226.792,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41204,
    "c": 0.19846,
    "h": 265.3
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#1538B4
secondary
#CFB456
accent
#CB32F6
background
#F7F6FC
surface
#EEECF9
border
#C9C7D2
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1538B4

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

Preview Lab → · Contrast checker → · Palette generator →

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