#1B4D97#1B4D97

#1B4D97 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.0% C 0.133 H 258.6°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#1B4D97
RGBrgb(27, 77, 151)
HSLhsl(216, 70%, 35%)
HSVhsv(216, 82%, 59%)
CMYKcmyk(82.1%, 49%, 0%, 40.8%)
CIE-LABlab(33.51, 11.85, -45.24)
CIE-LCHlch(33.51, 46.76, 284.68°)
OKLaboklab(43.05% -0.0262 -0.1301)
OKLCHoklch(43.05% 0.133 258.6)
XYZxyz(8.6897, 7.7741, 30.3147)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4D97 #97651B
analogous
#1B8B97 #1B4D97 #271B97
triadic
#1B4D97 #971B4D #4D971B
tetradic
#1B4D97 #971B8B #97651B #1B9727
square
#1B4D97 #971B8B #97651B #1B9727
split-complementary
#1B4D97 #97271B #8B971B
monochromatic
#08182F #123363 #1B4D97 #2467CB #4D88DF

Accessibility & contrast

On white

8.22
#1B4D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#1B4D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4D97
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4D97#FFFFFF#000000##FFFFFF
##1B4D971.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22559A
Deuteranopia (green-blind)
#004A96
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1b4d97;
/* rgb */ color: rgb(27, 77, 151);
/* oklch */ color: oklch(43.0% 0.133 258.6);
Tailwind
colors: {
  custom: {
    50: '#6d7eb6',
    500: '#1b4d97',
    950: '#000000',
  },
}
SCSS
$custom: #1b4d97;
$custom-light: #6d7eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4d97",
  "rgb": {
    "r": 27,
    "g": 77,
    "b": 151
  },
  "hsl": {
    "h": 215.806,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43046,
    "c": 0.13267,
    "h": 258.6
  },
  "luminance": 0.07775
}

Semantic roles & 50–950 ramp

primary
#1B4D97
secondary
#C1924C
accent
#A53BEC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1B4D97

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

Preview Lab → · Contrast checker → · Palette generator →

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