#1A177D#1A177D

#1A177D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.162 H 272.2°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#1A177D
RGBrgb(26, 23, 125)
HSLhsl(242, 69%, 29%)
HSVhsv(242, 82%, 49%)
CMYKcmyk(79.2%, 81.6%, 0%, 51%)
CIE-LABlab(17.05, 37.52, -55.97)
CIE-LCHlch(17.05, 67.38, 303.84°)
OKLaboklab(30.12% 0.0063 -0.162)
OKLCHoklch(30.12% 0.162 272.2)
XYZxyz(4.4328, 2.3126, 19.6108)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A177D #7A7D17
analogous
#17477D #1A177D #4D177D
triadic
#1A177D #7D1A17 #177D1A
tetradic
#1A177D #7D1747 #7A7D17 #177D4D
square
#1A177D #7D1747 #7A7D17 #177D4D
split-complementary
#1A177D #7D4D17 #477D17
monochromatic
#05051A #0F0D49 #1A177D #2521B1 #3935DA

Accessibility & contrast

On white

14.36
#1A177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1A177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A177D
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A177D#FFFFFF#000000##FFFFFF
##1A177D1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1a177d;
/* rgb */ color: rgb(26, 23, 125);
/* oklch */ color: oklch(30.1% 0.162 272.2);
Tailwind
colors: {
  custom: {
    50: '#6a56a4',
    500: '#1a177d',
    950: '#000000',
  },
}
SCSS
$custom: #1a177d;
$custom-light: #6a56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a177d",
  "rgb": {
    "r": 26,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 241.765,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3012,
    "c": 0.1621,
    "h": 272.2
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#1A177D
secondary
#AEB23E
accent
#EC3CE7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1A177D

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

Preview Lab → · Contrast checker → · Palette generator →

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