#1A4798#1A4798

#1A4798 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.7% C 0.142 H 261.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#1A4798
RGBrgb(26, 71, 152)
HSLhsl(219, 71%, 35%)
HSVhsv(219, 83%, 60%)
CMYKcmyk(82.9%, 53.3%, 0%, 40.4%)
CIE-LABlab(31.79, 16.24, -48.62)
CIE-LCHlch(31.79, 51.26, 288.47°)
OKLaboklab(41.75% -0.0221 -0.1402)
OKLCHoklch(41.75% 0.142 261.1)
XYZxyz(8.3447, 6.9921, 30.6095)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A4798 #986B1A
analogous
#1A8698 #1A4798 #2C1A98
triadic
#1A4798 #981A47 #47981A
tetradic
#1A4798 #981A86 #986B1A #1A982C
square
#1A4798 #981A86 #986B1A #1A982C
split-complementary
#1A4798 #982C1A #86981A
monochromatic
#08162F #112F64 #1A4798 #235FCC #4C81E0

Accessibility & contrast

On white

8.76
#1A4798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#1A4798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A4798
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A4798#FFFFFF#000000##FFFFFF
##1A47981.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C519B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1a4798;
/* rgb */ color: rgb(26, 71, 152);
/* oklch */ color: oklch(41.7% 0.142 261.1);
Tailwind
colors: {
  custom: {
    50: '#6d79b7',
    500: '#1a4798',
    950: '#000000',
  },
}
SCSS
$custom: #1a4798;
$custom-light: #6d79b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1a4798",
  "rgb": {
    "r": 26,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 218.571,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41745,
    "c": 0.14189,
    "h": 261.1
  },
  "luminance": 0.06993
}

Semantic roles & 50–950 ramp

primary
#1A4798
secondary
#C2984B
accent
#AE3AEE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1A4798

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

Preview Lab → · Contrast checker → · Palette generator →

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