#1C4798#1C4798

#1C4798 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.8% C 0.141 H 261.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#1C4798
RGBrgb(28, 71, 152)
HSLhsl(219, 69%, 35%)
HSVhsv(219, 82%, 60%)
CMYKcmyk(81.6%, 53.3%, 0%, 40.4%)
CIE-LABlab(31.85, 16.44, -48.52)
CIE-LCHlch(31.85, 51.23, 288.72°)
OKLaboklab(41.81% -0.0208 -0.1398)
OKLCHoklch(41.81% 0.141 261.5)
XYZxyz(8.3976, 7.0193, 30.6120)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C4798 #986D1C
analogous
#1C8598 #1C4798 #2F1C98
triadic
#1C4798 #981C47 #47981C
tetradic
#1C4798 #981C85 #986D1C #1C982F
square
#1C4798 #981C85 #986D1C #1C982F
split-complementary
#1C4798 #982F1C #85981C
monochromatic
#091731 #122F64 #1C4798 #265FCC #5081DF

Accessibility & contrast

On white

8.74
#1C4798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C4798
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C4798#FFFFFF#000000##FFFFFF
##1C47981.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1c4798;
/* rgb */ color: rgb(28, 71, 152);
/* oklch */ color: oklch(41.8% 0.141 261.5);
Tailwind
colors: {
  custom: {
    50: '#6e79b7',
    500: '#1c4798',
    950: '#000000',
  },
}
SCSS
$custom: #1c4798;
$custom-light: #6e79b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1c4798",
  "rgb": {
    "r": 28,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 219.194,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41809,
    "c": 0.14137,
    "h": 261.5
  },
  "luminance": 0.0702
}

Semantic roles & 50–950 ramp

primary
#1C4798
secondary
#C19A4E
accent
#AF3CEC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1C4798

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

Preview Lab → · Contrast checker → · Palette generator →

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