#1B4797#1B4797

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

Color values

HEX#1B4797
RGBrgb(27, 71, 151)
HSLhsl(219, 70%, 35%)
HSVhsv(219, 82%, 59%)
CMYKcmyk(82.1%, 53%, 0%, 40.8%)
CIE-LABlab(31.75, 15.93, -48.08)
CIE-LCHlch(31.75, 50.66, 288.33°)
OKLaboklab(41.7% -0.0215 -0.1386)
OKLCHoklch(41.7% 0.14 261.2)
XYZxyz(8.2891, 6.9729, 30.1812)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4797 #976B1B
analogous
#1B8597 #1B4797 #2D1B97
triadic
#1B4797 #971B47 #47971B
tetradic
#1B4797 #971B85 #976B1B #1B972D
square
#1B4797 #971B85 #976B1B #1B972D
split-complementary
#1B4797 #972D1B #85971B
monochromatic
#08162F #122F63 #1B4797 #245FCB #4D81DF

Accessibility & contrast

On white

8.77
#1B4797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#1B4797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4797
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4797#FFFFFF#000000##FFFFFF
##1B47971.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b4797;
/* rgb */ color: rgb(27, 71, 151);
/* oklch */ color: oklch(41.7% 0.140 261.2);
Tailwind
colors: {
  custom: {
    50: '#6d79b6',
    500: '#1b4797',
    950: '#000000',
  },
}
SCSS
$custom: #1b4797;
$custom-light: #6d79b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4797",
  "rgb": {
    "r": 27,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 218.71,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41696,
    "c": 0.14023,
    "h": 261.2
  },
  "luminance": 0.06974
}

Semantic roles & 50–950 ramp

primary
#1B4797
secondary
#C1984C
accent
#AE3BEC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1B4797

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

Preview Lab → · Contrast checker → · Palette generator →

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