#1B4DB4#1B4DB4

#1B4DB4 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.172 H 262.4°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#1B4DB4
RGBrgb(27, 77, 180)
HSLhsl(220, 74%, 41%)
HSVhsv(220, 85%, 71%)
CMYKcmyk(85%, 57.2%, 0%, 29.4%)
CIE-LABlab(35.66, 23.47, -59.10)
CIE-LCHlch(35.66, 63.59, 291.66°)
OKLaboklab(45.37% -0.0229 -0.1708)
OKLCHoklch(45.37% 0.172 262.4)
XYZxyz(11.3411, 8.8346, 44.2787)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4DB4 #B4821B
analogous
#1B99B4 #1B4DB4 #351BB4
triadic
#1B4DB4 #B41B4D #4DB41B
tetradic
#1B4DB4 #B41B99 #B4821B #1BB435
square
#1B4DB4 #B41B99 #B4821B #1BB435
split-complementary
#1B4DB4 #B4351B #99B41B
monochromatic
#0B1F4A #13367F #1B4DB4 #2D67DF #628EE7

Accessibility & contrast

On white

7.59
#1B4DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#1B4DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4DB4
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4DB4#FFFFFF#000000##FFFFFF
##1B4DB41.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB8
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1b4db4;
/* rgb */ color: rgb(27, 77, 180);
/* oklch */ color: oklch(45.4% 0.172 262.4);
Tailwind
colors: {
  custom: {
    50: '#747ecb',
    500: '#1b4db4',
    950: '#000000',
  },
}
SCSS
$custom: #1b4db4;
$custom-light: #747ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4db4",
  "rgb": {
    "r": 27,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 220.392,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45369,
    "c": 0.17234,
    "h": 262.4
  },
  "luminance": 0.08836
}

Semantic roles & 50–950 ramp

primary
#1B4DB4
secondary
#CCA85F
accent
#B437F1
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1B4DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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