#1A157E#1A157E

#1A157E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.165 H 272.3°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#1A157E
RGBrgb(26, 21, 126)
HSLhsl(243, 71%, 29%)
HSVhsv(243, 83%, 49%)
CMYKcmyk(79.4%, 83.3%, 0%, 50.6%)
CIE-LABlab(16.81, 38.93, -57.01)
CIE-LCHlch(16.81, 69.03, 304.33°)
OKLaboklab(29.99% 0.0067 -0.165)
OKLCHoklch(29.99% 0.165 272.3)
XYZxyz(4.4588, 2.2618, 19.9362)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A157E #797E15
analogous
#15457E #1A157E #4F157E
triadic
#1A157E #7E1A15 #157E1A
tetradic
#1A157E #7E1545 #797E15 #157E4F
square
#1A157E #7E1545 #797E15 #157E4F
split-complementary
#1A157E #7E4F15 #457E15
monochromatic
#05041A #0F0C4A #1A157E #251EB2 #3931DD

Accessibility & contrast

On white

14.46
#1A157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A157E
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A157E#FFFFFF#000000##FFFFFF
##1A157E1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a157e;
/* rgb */ color: rgb(26, 21, 126);
/* oklch */ color: oklch(30.0% 0.165 272.3);
Tailwind
colors: {
  custom: {
    50: '#6a55a5',
    500: '#1a157e',
    950: '#000000',
  },
}
SCSS
$custom: #1a157e;
$custom-light: #6a55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a157e",
  "rgb": {
    "r": 26,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 242.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.29986,
    "c": 0.16511,
    "h": 272.3
  },
  "luminance": 0.02262
}

Semantic roles & 50–950 ramp

primary
#1A157E
secondary
#ADB33C
accent
#EE3AE6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1A157E

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

Preview Lab → · Contrast checker → · Palette generator →

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