#1A1F77#1A1F77

#1A1F77 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.146 H 271.5°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#1A1F77
RGBrgb(26, 31, 119)
HSLhsl(237, 64%, 28%)
HSVhsv(237, 78%, 47%)
CMYKcmyk(78.2%, 73.9%, 0%, 53.3%)
CIE-LABlab(18.06, 30.59, -50.46)
CIE-LCHlch(18.06, 59.01, 301.23°)
OKLaboklab(30.63% 0.0038 -0.146)
OKLCHoklch(30.63% 0.146 271.5)
XYZxyz(4.2446, 2.5310, 17.7140)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F77 #77721A
analogous
#1A4D77 #1A1F77 #431A77
triadic
#1A1F77 #771A1F #1F771A
tetradic
#1A1F77 #771A4D #77721A #1A7743
square
#1A1F77 #771A4D #77721A #1A7743
split-complementary
#1A1F77 #77431A #4D771A
monochromatic
#050719 #0F1245 #1A1F77 #252CA9 #3840D3

Accessibility & contrast

On white

13.94
#1A1F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1A1F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F77
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F77#FFFFFF#000000##FFFFFF
##1A1F771.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1a1f77;
/* rgb */ color: rgb(26, 31, 119);
/* oklch */ color: oklch(30.6% 0.146 271.5);
Tailwind
colors: {
  custom: {
    50: '#675b9f',
    500: '#1a1f77',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f77;
$custom-light: #675b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f77",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 236.774,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30632,
    "c": 0.14609,
    "h": 271.5
  },
  "luminance": 0.02531
}

Semantic roles & 50–950 ramp

primary
#1A1F77
secondary
#ACA641
accent
#DE41E7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #1A1F77

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

Preview Lab → · Contrast checker → · Palette generator →

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