#1A277E#1A277E

#1A277E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.146 H 269.4°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#1A277E
RGBrgb(26, 39, 126)
HSLhsl(232, 66%, 30%)
HSVhsv(232, 79%, 49%)
CMYKcmyk(79.4%, 69%, 0%, 50.6%)
CIE-LABlab(20.74, 27.94, -50.52)
CIE-LCHlch(20.74, 57.73, 298.95°)
OKLaboklab(32.79% -0.0015 -0.1462)
OKLCHoklch(32.79% 0.146 269.4)
XYZxyz(4.9161, 3.1765, 20.0886)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A277E #7E711A
analogous
#1A597E #1A277E #3F1A7E
triadic
#1A277E #7E1A27 #277E1A
tetradic
#1A277E #7E1A59 #7E711A #1A7E3F
square
#1A277E #7E1A59 #7E711A #1A7E3F
split-complementary
#1A277E #7E3F1A #597E1A
monochromatic
#050819 #10174B #1A277E #2437B1 #3C50D7

Accessibility & contrast

On white

12.84
#1A277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1A277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A277E
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A277E#FFFFFF#000000##FFFFFF
##1A277E1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a277e;
/* rgb */ color: rgb(26, 39, 126);
/* oklch */ color: oklch(32.8% 0.146 269.4);
Tailwind
colors: {
  custom: {
    50: '#6961a4',
    500: '#1a277e',
    950: '#000000',
  },
}
SCSS
$custom: #1a277e;
$custom-light: #6961a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a277e",
  "rgb": {
    "r": 26,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 232.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3279,
    "c": 0.14621,
    "h": 269.4
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#1A277E
secondary
#B2A342
accent
#D33FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1A277E

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

Preview Lab → · Contrast checker → · Palette generator →

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