#1A178A#1A178A

#1A178A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.178 H 271.0°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#1A178A
RGBrgb(26, 23, 138)
HSLhsl(242, 71%, 32%)
HSVhsv(242, 83%, 54%)
CMYKcmyk(81.2%, 83.3%, 0%, 45.9%)
CIE-LABlab(18.66, 41.86, -61.52)
CIE-LCHlch(18.66, 74.41, 304.23°)
OKLaboklab(31.71% 0.0032 -0.1781)
OKLCHoklch(31.71% 0.178 271)
XYZxyz(5.3183, 2.6668, 24.2743)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A178A #878A17
analogous
#174E8A #1A178A #54178A
triadic
#1A178A #8A1A17 #178A1A
tetradic
#1A178A #8A174E #878A17 #178A54
square
#1A178A #8A174E #878A17 #178A54
split-complementary
#1A178A #8A5417 #4E8A17
monochromatic
#060621 #100E56 #1A178A #2420BE #413DDF

Accessibility & contrast

On white

13.70
#1A178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1A178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A178A
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A178A#FFFFFF#000000##FFFFFF
##1A178A1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1a178a;
/* rgb */ color: rgb(26, 23, 138);
/* oklch */ color: oklch(31.7% 0.178 271.0);
Tailwind
colors: {
  custom: {
    50: '#6d57ad',
    500: '#1a178a',
    950: '#000000',
  },
}
SCSS
$custom: #1a178a;
$custom-light: #6d57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1a178a",
  "rgb": {
    "r": 26,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 241.565,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31706,
    "c": 0.1781,
    "h": 271
  },
  "luminance": 0.02667
}

Semantic roles & 50–950 ramp

primary
#1A178A
secondary
#BABE3F
accent
#EE3AE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1A178A

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

Preview Lab → · Contrast checker → · Palette generator →

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