#1A187E#1A187E

#1A187E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.162 H 272.0°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#1A187E
RGBrgb(26, 24, 126)
HSLhsl(241, 68%, 29%)
HSVhsv(241, 81%, 49%)
CMYKcmyk(79.4%, 81%, 0%, 50.6%)
CIE-LABlab(17.36, 37.32, -56.09)
CIE-LCHlch(17.36, 67.37, 303.64°)
OKLaboklab(30.37% 0.0057 -0.1623)
OKLCHoklch(30.37% 0.162 272)
XYZxyz(4.5173, 2.3787, 19.9557)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A187E #7C7E18
analogous
#18497E #1A187E #4D187E
triadic
#1A187E #7E1A18 #187E1A
tetradic
#1A187E #7E1849 #7C7E18 #187E4D
square
#1A187E #7E1849 #7C7E18 #187E4D
split-complementary
#1A187E #7E4D18 #497E18
monochromatic
#05051A #0F0E4B #1A187E #2522B1 #3B37D9

Accessibility & contrast

On white

14.23
#1A187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1A187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A187E
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A187E#FFFFFF#000000##FFFFFF
##1A187E1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1a187e;
/* rgb */ color: rgb(26, 24, 126);
/* oklch */ color: oklch(30.4% 0.162 272.0);
Tailwind
colors: {
  custom: {
    50: '#6a57a5',
    500: '#1a187e',
    950: '#000000',
  },
}
SCSS
$custom: #1a187e;
$custom-light: #6a57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a187e",
  "rgb": {
    "r": 26,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 241.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30374,
    "c": 0.16244,
    "h": 272
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A187E

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

Preview Lab → · Contrast checker → · Palette generator →

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