#1B4FA7#1B4FA7

#1B4FA7 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.152 H 260.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#1B4FA7
RGBrgb(27, 79, 167)
HSLhsl(218, 72%, 38%)
HSVhsv(218, 84%, 65%)
CMYKcmyk(83.8%, 52.7%, 0%, 34.5%)
CIE-LABlab(35.23, 16.95, -52.08)
CIE-LCHlch(35.23, 54.77, 288.02°)
OKLaboklab(44.73% -0.0254 -0.1502)
OKLCHoklch(44.73% 0.152 260.4)
XYZxyz(10.2205, 8.6137, 37.6757)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4FA7 #A7731B
analogous
#1B95A7 #1B4FA7 #2D1BA7
triadic
#1B4FA7 #A71B4F #4FA71B
tetradic
#1B4FA7 #A71B95 #A7731B #1BA72D
square
#1B4FA7 #A71B95 #A7731B #1BA72D
split-complementary
#1B4FA7 #A72D1B #95A71B
monochromatic
#0A1D3E #123672 #1B4FA7 #2468DC #588CE4

Accessibility & contrast

On white

7.71
#1B4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#1B4FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4FA7
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4FA7#FFFFFF#000000##FFFFFF
##1B4FA71.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5AAA
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1b4fa7;
/* rgb */ color: rgb(27, 79, 167);
/* oklch */ color: oklch(44.7% 0.152 260.4);
Tailwind
colors: {
  custom: {
    50: '#717fc2',
    500: '#1b4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #1b4fa7;
$custom-light: #717fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4fa7",
  "rgb": {
    "r": 27,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 217.714,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44727,
    "c": 0.15229,
    "h": 260.4
  },
  "luminance": 0.08615
}

Semantic roles & 50–950 ramp

primary
#1B4FA7
secondary
#C89D56
accent
#AB39EF
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1B4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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