#1A277F#1A277F

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

Color values

HEX#1A277F
RGBrgb(26, 39, 127)
HSLhsl(232, 66%, 30%)
HSVhsv(232, 80%, 50%)
CMYKcmyk(79.5%, 69.3%, 0%, 50.2%)
CIE-LABlab(20.84, 28.33, -50.99)
CIE-LCHlch(20.84, 58.33, 299.06°)
OKLaboklab(32.89% -0.0015 -0.1476)
OKLCHoklch(32.89% 0.148 269.4)
XYZxyz(4.9810, 3.2024, 20.4302)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A277F #7F721A
analogous
#1A5A7F #1A277F #3F1A7F
triadic
#1A277F #7F1A27 #277F1A
tetradic
#1A277F #7F1A5A #7F721A #1A7F3F
square
#1A277F #7F1A5A #7F721A #1A7F3F
split-complementary
#1A277F #7F3F1A #5A7F1A
monochromatic
#050819 #10174C #1A277F #2437B2 #3C50D7

Accessibility & contrast

On white

12.80
#1A277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A277F
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A277F#FFFFFF#000000##FFFFFF
##1A277F1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a277f;
/* rgb */ color: rgb(26, 39, 127);
/* oklch */ color: oklch(32.9% 0.148 269.4);
Tailwind
colors: {
  custom: {
    50: '#6961a5',
    500: '#1a277f',
    950: '#000000',
  },
}
SCSS
$custom: #1a277f;
$custom-light: #6961a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a277f",
  "rgb": {
    "r": 26,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 232.277,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.32893,
    "c": 0.14758,
    "h": 269.4
  },
  "luminance": 0.03203
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A277F

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

Preview Lab → · Contrast checker → · Palette generator →

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