#1A187C#1A187C

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

Color values

HEX#1A187C
RGBrgb(26, 24, 124)
HSLhsl(241, 68%, 29%)
HSVhsv(241, 81%, 49%)
CMYKcmyk(79%, 80.6%, 0%, 51.4%)
CIE-LABlab(17.12, 36.63, -55.21)
CIE-LCHlch(17.12, 66.26, 303.56°)
OKLaboklab(30.14% 0.0061 -0.1598)
OKLCHoklch(30.14% 0.16 272.2)
XYZxyz(4.3895, 2.3276, 19.2828)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A187C #7A7C18
analogous
#18487C #1A187C #4C187C
triadic
#1A187C #7C1A18 #187C1A
tetradic
#1A187C #7C1848 #7A7C18 #187C4C
square
#1A187C #7C1848 #7A7C18 #187C4C
split-complementary
#1A187C #7C4C18 #487C18
monochromatic
#05051A #0F0E49 #1A187C #2522AF #3936D8

Accessibility & contrast

On white

14.33
#1A187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A187C
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A187C#FFFFFF#000000##FFFFFF
##1A187C1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1a187c;
/* rgb */ color: rgb(26, 24, 124);
/* oklch */ color: oklch(30.1% 0.160 272.2);
Tailwind
colors: {
  custom: {
    50: '#6a57a3',
    500: '#1a187c',
    950: '#000000',
  },
}
SCSS
$custom: #1a187c;
$custom-light: #6a57a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a187c",
  "rgb": {
    "r": 26,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 241.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30135,
    "c": 0.15992,
    "h": 272.2
  },
  "luminance": 0.02328
}

Semantic roles & 50–950 ramp

primary
#1A187C
secondary
#AEB13F
accent
#EA3DE7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1A187C

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

Preview Lab → · Contrast checker → · Palette generator →

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