#1B4796#1B4796

#1B4796 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.6% C 0.139 H 261.0°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#1B4796
RGBrgb(27, 71, 150)
HSLhsl(219, 69%, 35%)
HSVhsv(219, 82%, 59%)
CMYKcmyk(82%, 52.7%, 0%, 41.2%)
CIE-LABlab(31.67, 15.53, -47.60)
CIE-LCHlch(31.67, 50.06, 288.07°)
OKLaboklab(41.62% -0.0217 -0.1371)
OKLCHoklch(41.62% 0.139 261)
XYZxyz(8.2083, 6.9405, 29.7553)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4796 #966A1B
analogous
#1B8496 #1B4796 #2D1B96
triadic
#1B4796 #961B47 #47961B
tetradic
#1B4796 #961B84 #966A1B #1B962D
square
#1B4796 #961B84 #966A1B #1B962D
split-complementary
#1B4796 #962D1B #84961B
monochromatic
#08162E #122E62 #1B4796 #2460CA #4D81DF

Accessibility & contrast

On white

8.79
#1B4796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B4796
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4796#FFFFFF#000000##FFFFFF
##1B47961.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115099
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1b4796;
/* rgb */ color: rgb(27, 71, 150);
/* oklch */ color: oklch(41.6% 0.139 261.0);
Tailwind
colors: {
  custom: {
    50: '#6d79b5',
    500: '#1b4796',
    950: '#000000',
  },
}
SCSS
$custom: #1b4796;
$custom-light: #6d79b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4796",
  "rgb": {
    "r": 27,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 218.537,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41616,
    "c": 0.13882,
    "h": 261
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#1B4796
secondary
#C1974C
accent
#AD3BEC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1B4796

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

Preview Lab → · Contrast checker → · Palette generator →

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