#1A177E#1A177E

#1A177E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.163 H 272.1°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#1A177E
RGBrgb(26, 23, 126)
HSLhsl(242, 69%, 29%)
HSVhsv(242, 82%, 49%)
CMYKcmyk(79.4%, 81.7%, 0%, 50.6%)
CIE-LABlab(17.17, 37.86, -56.40)
CIE-LCHlch(17.17, 67.93, 303.87°)
OKLaboklab(30.24% 0.006 -0.1632)
OKLCHoklch(30.24% 0.163 272.1)
XYZxyz(4.4970, 2.3383, 19.9489)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A177E #7B7E17
analogous
#17487E #1A177E #4E177E
triadic
#1A177E #7E1A17 #177E1A
tetradic
#1A177E #7E1748 #7B7E17 #177E4E
square
#1A177E #7E1748 #7B7E17 #177E4E
split-complementary
#1A177E #7E4E17 #487E17
monochromatic
#05051A #0F0E4A #1A177E #2520B2 #3A35DA

Accessibility & contrast

On white

14.31
#1A177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1A177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A177E
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A177E#FFFFFF#000000##FFFFFF
##1A177E1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1a177e;
/* rgb */ color: rgb(26, 23, 126);
/* oklch */ color: oklch(30.2% 0.163 272.1);
Tailwind
colors: {
  custom: {
    50: '#6a56a5',
    500: '#1a177e',
    950: '#000000',
  },
}
SCSS
$custom: #1a177e;
$custom-light: #6a56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a177e",
  "rgb": {
    "r": 26,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 241.748,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30241,
    "c": 0.16335,
    "h": 272.1
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A177E

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

Preview Lab → · Contrast checker → · Palette generator →

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