#1A277D#1A277D

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

Color values

HEX#1A277D
RGBrgb(26, 39, 125)
HSLhsl(232, 66%, 30%)
HSVhsv(232, 79%, 49%)
CMYKcmyk(79.2%, 68.8%, 0%, 51%)
CIE-LABlab(20.64, 27.56, -50.05)
CIE-LCHlch(20.64, 57.13, 298.84°)
OKLaboklab(32.69% -0.0014 -0.1448)
OKLCHoklch(32.69% 0.145 269.4)
XYZxyz(4.8519, 3.1508, 19.7505)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A277D #7D701A
analogous
#1A597D #1A277D #3E1A7D
triadic
#1A277D #7D1A27 #277D1A
tetradic
#1A277D #7D1A59 #7D701A #1A7D3E
square
#1A277D #7D1A59 #7D701A #1A7D3E
split-complementary
#1A277D #7D3E1A #597D1A
monochromatic
#050819 #0F174A #1A277D #2537B0 #3B50D6

Accessibility & contrast

On white

12.88
#1A277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1A277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A277D
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A277D#FFFFFF#000000##FFFFFF
##1A277D1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a277d;
/* rgb */ color: rgb(26, 39, 125);
/* oklch */ color: oklch(32.7% 0.145 269.4);
Tailwind
colors: {
  custom: {
    50: '#6861a4',
    500: '#1a277d',
    950: '#000000',
  },
}
SCSS
$custom: #1a277d;
$custom-light: #6861a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a277d",
  "rgb": {
    "r": 26,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 232.121,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32687,
    "c": 0.14483,
    "h": 269.4
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#1A277D
secondary
#B1A242
accent
#D23FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1A277D

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

Preview Lab → · Contrast checker → · Palette generator →

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