#1A187A#1A187A

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

Color values

HEX#1A187A
RGBrgb(26, 24, 122)
HSLhsl(241, 67%, 29%)
HSVhsv(241, 80%, 48%)
CMYKcmyk(78.7%, 80.3%, 0%, 52.2%)
CIE-LABlab(16.88, 35.94, -54.33)
CIE-LCHlch(16.88, 65.14, 303.48°)
OKLaboklab(29.9% 0.0066 -0.1572)
OKLCHoklch(29.9% 0.157 272.4)
XYZxyz(4.2643, 2.2776, 18.6235)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A187A #787A18
analogous
#18477A #1A187A #4B187A
triadic
#1A187A #7A1A18 #187A1A
tetradic
#1A187A #7A1847 #787A18 #187A4B
square
#1A187A #7A1847 #787A18 #187A4B
split-complementary
#1A187A #7A4B18 #477A18
monochromatic
#05051A #0F0E47 #1A187A #2522AD #3835D7

Accessibility & contrast

On white

14.43
#1A187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A187A
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A187A#FFFFFF#000000##FFFFFF
##1A187A1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1a187a;
/* rgb */ color: rgb(26, 24, 122);
/* oklch */ color: oklch(29.9% 0.157 272.4);
Tailwind
colors: {
  custom: {
    50: '#6957a2',
    500: '#1a187a',
    950: '#000000',
  },
}
SCSS
$custom: #1a187a;
$custom-light: #6957a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1a187a",
  "rgb": {
    "r": 26,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 241.224,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29897,
    "c": 0.15738,
    "h": 272.4
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#1A187A
secondary
#ACAF3F
accent
#EA3EE7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1A187A

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

Preview Lab → · Contrast checker → · Palette generator →

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