#1A187D#1A187D

#1A187D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.161 H 272.1°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#1A187D
RGBrgb(26, 24, 125)
HSLhsl(241, 68%, 29%)
HSVhsv(241, 81%, 49%)
CMYKcmyk(79.2%, 80.8%, 0%, 51%)
CIE-LABlab(17.24, 36.97, -55.65)
CIE-LCHlch(17.24, 66.81, 303.60°)
OKLaboklab(30.25% 0.0059 -0.1611)
OKLCHoklch(30.25% 0.161 272.1)
XYZxyz(4.4531, 2.3531, 19.6176)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A187D #7B7D18
analogous
#18497D #1A187D #4D187D
triadic
#1A187D #7D1A18 #187D1A
tetradic
#1A187D #7D1849 #7B7D18 #187D4D
square
#1A187D #7D1849 #7B7D18 #187D4D
split-complementary
#1A187D #7D4D18 #497D18
monochromatic
#05051A #0F0E4A #1A187D #2522B0 #3A37D9

Accessibility & contrast

On white

14.28
#1A187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A187D
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A187D#FFFFFF#000000##FFFFFF
##1A187D1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1a187d;
/* rgb */ color: rgb(26, 24, 125);
/* oklch */ color: oklch(30.3% 0.161 272.1);
Tailwind
colors: {
  custom: {
    50: '#6a57a4',
    500: '#1a187d',
    950: '#000000',
  },
}
SCSS
$custom: #1a187d;
$custom-light: #6a57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a187d",
  "rgb": {
    "r": 26,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 241.188,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30254,
    "c": 0.16118,
    "h": 272.1
  },
  "luminance": 0.02354
}

Semantic roles & 50–950 ramp

primary
#1A187D
secondary
#AFB23F
accent
#EB3DE7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1A187D

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

Preview Lab → · Contrast checker → · Palette generator →

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