#1A187F#1A187F

#1A187F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.164 H 271.9°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#1A187F
RGBrgb(26, 24, 127)
HSLhsl(241, 68%, 30%)
HSVhsv(241, 81%, 50%)
CMYKcmyk(79.5%, 81.1%, 0%, 50.2%)
CIE-LABlab(17.48, 37.66, -56.52)
CIE-LCHlch(17.48, 67.92, 303.67°)
OKLaboklab(30.49% 0.0054 -0.1636)
OKLCHoklch(30.49% 0.164 271.9)
XYZxyz(4.5821, 2.4047, 20.2972)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A187F #7D7F18
analogous
#184A7F #1A187F #4E187F
triadic
#1A187F #7F1A18 #187F1A
tetradic
#1A187F #7F184A #7D7F18 #187F4E
square
#1A187F #7F184A #7D7F18 #187F4E
split-complementary
#1A187F #7F4E18 #4A7F18
monochromatic
#05051A #0F0E4C #1A187F #2522B2 #3B38D9

Accessibility & contrast

On white

14.18
#1A187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A187F
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A187F#FFFFFF#000000##FFFFFF
##1A187F1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1a187f;
/* rgb */ color: rgb(26, 24, 127);
/* oklch */ color: oklch(30.5% 0.164 271.9);
Tailwind
colors: {
  custom: {
    50: '#6a57a5',
    500: '#1a187f',
    950: '#000000',
  },
}
SCSS
$custom: #1a187f;
$custom-light: #6a57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a187f",
  "rgb": {
    "r": 26,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 241.165,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30494,
    "c": 0.1637,
    "h": 271.9
  },
  "luminance": 0.02405
}

Semantic roles & 50–950 ramp

primary
#1A187F
secondary
#B1B33F
accent
#EB3DE8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1A187F

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

Preview Lab → · Contrast checker → · Palette generator →

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