#1A177B#1A177B

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

Color values

HEX#1A177B
RGBrgb(26, 23, 123)
HSLhsl(242, 68%, 29%)
HSVhsv(242, 81%, 48%)
CMYKcmyk(78.9%, 81.3%, 0%, 51.8%)
CIE-LABlab(16.81, 36.84, -55.09)
CIE-LCHlch(16.81, 66.28, 303.77°)
OKLaboklab(29.88% 0.0067 -0.1594)
OKLCHoklch(29.88% 0.16 272.4)
XYZxyz(4.3063, 2.2620, 18.9447)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A177B #787B17
analogous
#17467B #1A177B #4C177B
triadic
#1A177B #7B1A17 #177B1A
tetradic
#1A177B #7B1746 #787B17 #177B4C
square
#1A177B #7B1746 #787B17 #177B4C
split-complementary
#1A177B #7B4C17 #467B17
monochromatic
#05051A #0F0D47 #1A177B #2521AF #3833D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1A177B#FFFFFF#000000##FFFFFF
##1A177B1.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)
#002E7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1a177b;
/* rgb */ color: rgb(26, 23, 123);
/* oklch */ color: oklch(29.9% 0.160 272.4);
Tailwind
colors: {
  custom: {
    50: '#6956a2',
    500: '#1a177b',
    950: '#000000',
  },
}
SCSS
$custom: #1a177b;
$custom-light: #6956a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1a177b",
  "rgb": {
    "r": 26,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 241.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29879,
    "c": 0.15958,
    "h": 272.4
  },
  "luminance": 0.02262
}

Semantic roles & 50–950 ramp

primary
#1A177B
secondary
#ACB03E
accent
#EB3CE6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1A177B

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

Preview Lab → · Contrast checker → · Palette generator →

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