#1A178F#1A178F

#1A178F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.184 H 270.6°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#1A178F
RGBrgb(26, 23, 143)
HSLhsl(242, 72%, 33%)
HSVhsv(242, 84%, 56%)
CMYKcmyk(81.8%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.29, 43.48, -63.60)
CIE-LCHlch(19.29, 77.04, 304.36°)
OKLaboklab(32.32% 0.002 -0.1841)
OKLCHoklch(32.32% 0.184 270.6)
XYZxyz(5.6886, 2.8149, 26.2248)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A178F #8C8F17
analogous
#17508F #1A178F #56178F
triadic
#1A178F #8F1A17 #178F1A
tetradic
#1A178F #8F1750 #8C8F17 #178F56
square
#1A178F #8F1750 #8C8F17 #178F56
split-complementary
#1A178F #8F5617 #508F17
monochromatic
#070626 #100F5A #1A178F #241FC4 #4440E0

Accessibility & contrast

On white

13.43
#1A178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1A178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A178F
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A178F#FFFFFF#000000##FFFFFF
##1A178F1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a178f;
/* rgb */ color: rgb(26, 23, 143);
/* oklch */ color: oklch(32.3% 0.184 270.6);
Tailwind
colors: {
  custom: {
    50: '#6f58b1',
    500: '#1a178f',
    950: '#000000',
  },
}
SCSS
$custom: #1a178f;
$custom-light: #6f58b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a178f",
  "rgb": {
    "r": 26,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 241.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32324,
    "c": 0.18409,
    "h": 270.6
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#1A178F
secondary
#BEC141
accent
#EF39EA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1A178F

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

Preview Lab → · Contrast checker → · Palette generator →

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