#1B4798#1B4798

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

Color values

HEX#1B4798
RGBrgb(27, 71, 152)
HSLhsl(219, 70%, 35%)
HSVhsv(219, 82%, 60%)
CMYKcmyk(82.2%, 53.3%, 0%, 40.4%)
CIE-LABlab(31.82, 16.34, -48.57)
CIE-LCHlch(31.82, 51.25, 288.59°)
OKLaboklab(41.78% -0.0214 -0.14)
OKLCHoklch(41.78% 0.142 261.3)
XYZxyz(8.3707, 7.0055, 30.6107)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4798 #986C1B
analogous
#1B8598 #1B4798 #2E1B98
triadic
#1B4798 #981B47 #47981B
tetradic
#1B4798 #981B85 #986C1B #1B982E
square
#1B4798 #981B85 #986C1B #1B982E
split-complementary
#1B4798 #982E1B #85981B
monochromatic
#091630 #122F64 #1B4798 #245FCC #4E81E0

Accessibility & contrast

On white

8.75
#1B4798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B4798
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4798#FFFFFF#000000##FFFFFF
##1B47981.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.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: #1b4798;
/* rgb */ color: rgb(27, 71, 152);
/* oklch */ color: oklch(41.8% 0.142 261.3);
Tailwind
colors: {
  custom: {
    50: '#6d79b7',
    500: '#1b4798',
    950: '#000000',
  },
}
SCSS
$custom: #1b4798;
$custom-light: #6d79b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4798",
  "rgb": {
    "r": 27,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 218.88,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41776,
    "c": 0.14163,
    "h": 261.3
  },
  "luminance": 0.07006
}

Semantic roles & 50–950 ramp

primary
#1B4798
secondary
#C2994D
accent
#AE3BED
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1B4798

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

Preview Lab → · Contrast checker → · Palette generator →

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