#1B4EB4#1B4EB4

#1B4EB4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.171 H 262.1°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#1B4EB4
RGBrgb(27, 78, 180)
HSLhsl(220, 74%, 41%)
HSVhsv(220, 85%, 71%)
CMYKcmyk(85%, 56.7%, 0%, 29.4%)
CIE-LABlab(35.94, 22.80, -58.65)
CIE-LCHlch(35.94, 62.93, 291.24°)
OKLaboklab(45.58% -0.0235 -0.1695)
OKLCHoklch(45.58% 0.171 262.1)
XYZxyz(11.4116, 8.9757, 44.3022)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4EB4 #B4811B
analogous
#1B9AB4 #1B4EB4 #341BB4
triadic
#1B4EB4 #B41B4E #4EB41B
tetradic
#1B4EB4 #B41B9A #B4811B #1BB434
square
#1B4EB4 #B41B9A #B4811B #1BB434
split-complementary
#1B4EB4 #B4341B #9AB41B
monochromatic
#0B204A #13377F #1B4EB4 #2D68DF #628EE7

Accessibility & contrast

On white

7.51
#1B4EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#1B4EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4EB4
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4EB4#FFFFFF#000000##FFFFFF
##1B4EB41.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1b4eb4;
/* rgb */ color: rgb(27, 78, 180);
/* oklch */ color: oklch(45.6% 0.171 262.1);
Tailwind
colors: {
  custom: {
    50: '#747ecb',
    500: '#1b4eb4',
    950: '#000000',
  },
}
SCSS
$custom: #1b4eb4;
$custom-light: #747ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4eb4",
  "rgb": {
    "r": 27,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 220,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45576,
    "c": 0.17112,
    "h": 262.1
  },
  "luminance": 0.08977
}

Semantic roles & 50–950 ramp

primary
#1B4EB4
secondary
#CCA85F
accent
#B337F1
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #1B4EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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