#1A157D#1A157D

#1A157D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.164 H 272.4°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#1A157D
RGBrgb(26, 21, 125)
HSLhsl(243, 71%, 29%)
HSVhsv(243, 83%, 49%)
CMYKcmyk(79.2%, 83.2%, 0%, 51%)
CIE-LABlab(16.68, 38.59, -56.58)
CIE-LCHlch(16.68, 68.49, 304.30°)
OKLaboklab(29.86% 0.0069 -0.1637)
OKLCHoklch(29.86% 0.164 272.4)
XYZxyz(4.3946, 2.2361, 19.5981)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A157D #787D15
analogous
#15447D #1A157D #4E157D
triadic
#1A157D #7D1A15 #157D1A
tetradic
#1A157D #7D1544 #787D15 #157D4E
square
#1A157D #7D1544 #787D15 #157D4E
split-complementary
#1A157D #7D4E15 #447D15
monochromatic
#05041A #0F0C49 #1A157D #251EB1 #3830DC

Accessibility & contrast

On white

14.51
#1A157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1A157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A157D
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A157D#FFFFFF#000000##FFFFFF
##1A157D1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1a157d;
/* rgb */ color: rgb(26, 21, 125);
/* oklch */ color: oklch(29.9% 0.164 272.4);
Tailwind
colors: {
  custom: {
    50: '#6a55a4',
    500: '#1a157d',
    950: '#000000',
  },
}
SCSS
$custom: #1a157d;
$custom-light: #6a55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a157d",
  "rgb": {
    "r": 26,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 242.885,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29863,
    "c": 0.16387,
    "h": 272.4
  },
  "luminance": 0.02237
}

Semantic roles & 50–950 ramp

primary
#1A157D
secondary
#ACB23C
accent
#EE3AE5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1A157D

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

Preview Lab → · Contrast checker → · Palette generator →

#1A157D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva