#1B4E9D#1B4E9D

#1B4E9D is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.7% C 0.140 H 259.3°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#1B4E9D
RGBrgb(27, 78, 157)
HSLhsl(216, 71%, 36%)
HSVhsv(216, 83%, 62%)
CMYKcmyk(82.8%, 50.3%, 0%, 38.4%)
CIE-LABlab(34.22, 13.60, -47.71)
CIE-LCHlch(34.22, 49.61, 285.91°)
OKLaboklab(43.73% -0.026 -0.1373)
OKLCHoklch(43.73% 0.14 259.3)
XYZxyz(9.2600, 8.1150, 32.9701)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4E9D #9D6A1B
analogous
#1B8F9D #1B4E9D #291B9D
triadic
#1B4E9D #9D1B4E #4E9D1B
tetradic
#1B4E9D #9D1B8F #9D6A1B #1B9D29
square
#1B4E9D #9D1B8F #9D6A1B #1B9D29
split-complementary
#1B4E9D #9D291B #8F9D1B
monochromatic
#091A35 #123469 #1B4E9D #2468D1 #518AE1

Accessibility & contrast

On white

8.01
#1B4E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#1B4E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4E9D
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4E9D#FFFFFF#000000##FFFFFF
##1B4E9D1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E57A0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1b4e9d;
/* rgb */ color: rgb(27, 78, 157);
/* oklch */ color: oklch(43.7% 0.140 259.3);
Tailwind
colors: {
  custom: {
    50: '#6e7eba',
    500: '#1b4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #1b4e9d;
$custom-light: #6e7eba;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4e9d",
  "rgb": {
    "r": 27,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 216.462,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43727,
    "c": 0.13977,
    "h": 259.3
  },
  "luminance": 0.08116
}

Semantic roles & 50–950 ramp

primary
#1B4E9D
secondary
#C49650
accent
#A73AED
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A12
muted
#7B7C81

Preview Lab

Preview with #1B4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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