#1A277C#1A277C

#1A277C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.143 H 269.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#1A277C
RGBrgb(26, 39, 124)
HSLhsl(232, 65%, 29%)
HSVhsv(232, 79%, 49%)
CMYKcmyk(79%, 68.5%, 0%, 51.4%)
CIE-LABlab(20.54, 27.17, -49.57)
CIE-LCHlch(20.54, 56.53, 298.73°)
OKLaboklab(32.58% -0.0013 -0.1434)
OKLCHoklch(32.58% 0.143 269.5)
XYZxyz(4.7884, 3.1254, 19.4158)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A277C #7C6F1A
analogous
#1A587C #1A277C #3E1A7C
triadic
#1A277C #7C1A27 #277C1A
tetradic
#1A277C #7C1A58 #7C6F1A #1A7C3E
square
#1A277C #7C1A58 #7C6F1A #1A7C3E
split-complementary
#1A277C #7C3E1A #587C1A
monochromatic
#050819 #0F1749 #1A277C #2537AF #3B4FD6

Accessibility & contrast

On white

12.92
#1A277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A277C
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A277C#FFFFFF#000000##FFFFFF
##1A277C1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1a277c;
/* rgb */ color: rgb(26, 39, 124);
/* oklch */ color: oklch(32.6% 0.143 269.5);
Tailwind
colors: {
  custom: {
    50: '#6861a3',
    500: '#1a277c',
    950: '#000000',
  },
}
SCSS
$custom: #1a277c;
$custom-light: #6861a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a277c",
  "rgb": {
    "r": 26,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 232.041,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32585,
    "c": 0.14345,
    "h": 269.5
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#1A277C
secondary
#B0A242
accent
#D240E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1A277C

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

Preview Lab → · Contrast checker → · Palette generator →

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