#1A177F#1A177F

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

Color values

HEX#1A177F
RGBrgb(26, 23, 127)
HSLhsl(242, 69%, 29%)
HSVhsv(242, 82%, 50%)
CMYKcmyk(79.5%, 81.9%, 0%, 50.2%)
CIE-LABlab(17.29, 38.20, -56.84)
CIE-LCHlch(17.29, 68.48, 303.91°)
OKLaboklab(30.36% 0.0058 -0.1645)
OKLCHoklch(30.36% 0.165 272)
XYZxyz(4.5619, 2.3642, 20.2905)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A177F #7C7F17
analogous
#17487F #1A177F #4E177F
triadic
#1A177F #7F1A17 #177F1A
tetradic
#1A177F #7F1748 #7C7F17 #177F4E
square
#1A177F #7F1748 #7C7F17 #177F4E
split-complementary
#1A177F #7F4E17 #487F17
monochromatic
#05051A #0F0E4B #1A177F #2520B3 #3B36DB

Accessibility & contrast

On white

14.26
#1A177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A177F
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A177F#FFFFFF#000000##FFFFFF
##1A177F1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a177f;
/* rgb */ color: rgb(26, 23, 127);
/* oklch */ color: oklch(30.4% 0.165 272.0);
Tailwind
colors: {
  custom: {
    50: '#6a57a5',
    500: '#1a177f',
    950: '#000000',
  },
}
SCSS
$custom: #1a177f;
$custom-light: #6a57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a177f",
  "rgb": {
    "r": 26,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 241.731,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30362,
    "c": 0.1646,
    "h": 272
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#1A177F
secondary
#B0B43E
accent
#EC3CE7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1A177F

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

Preview Lab → · Contrast checker → · Palette generator →

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