#1A2877#1A2877

#1A2877 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.135 H 269.3°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#1A2877
RGBrgb(26, 40, 119)
HSLhsl(231, 64%, 28%)
HSVhsv(231, 78%, 47%)
CMYKcmyk(78.2%, 66.4%, 0%, 53.3%)
CIE-LABlab(20.32, 24.52, -46.75)
CIE-LCHlch(20.32, 52.79, 297.68°)
OKLaboklab(32.27% -0.0017 -0.1352)
OKLCHoklch(32.27% 0.135 269.3)
XYZxyz(4.5134, 3.0686, 17.8036)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2877 #77691A
analogous
#1A5677 #1A2877 #3A1A77
triadic
#1A2877 #771A28 #28771A
tetradic
#1A2877 #771A56 #77691A #1A773A
square
#1A2877 #771A56 #77691A #1A773A
split-complementary
#1A2877 #773A1A #56771A
monochromatic
#050819 #0F1745 #1A2877 #2539A9 #384FD3

Accessibility & contrast

On white

13.01
#1A2877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1A2877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2877
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2877#FFFFFF#000000##FFFFFF
##1A28771.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1a2877;
/* rgb */ color: rgb(26, 40, 119);
/* oklch */ color: oklch(32.3% 0.135 269.3);
Tailwind
colors: {
  custom: {
    50: '#67619f',
    500: '#1a2877',
    950: '#000000',
  },
}
SCSS
$custom: #1a2877;
$custom-light: #67619f;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2877",
  "rgb": {
    "r": 26,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 230.968,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32274,
    "c": 0.13518,
    "h": 269.3
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#1A2877
secondary
#AC9C41
accent
#CE41E7
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1A2877

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

Preview Lab → · Contrast checker → · Palette generator →

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