#1B4F9D#1B4F9D

#1B4F9D is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.0% C 0.139 H 258.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#1B4F9D
RGBrgb(27, 79, 157)
HSLhsl(216, 71%, 36%)
HSVhsv(216, 83%, 62%)
CMYKcmyk(82.8%, 49.7%, 0%, 38.4%)
CIE-LABlab(34.51, 12.92, -47.24)
CIE-LCHlch(34.51, 48.98, 285.30°)
OKLaboklab(43.95% -0.0268 -0.1359)
OKLCHoklch(43.95% 0.139 258.8)
XYZxyz(9.3315, 8.2582, 32.9939)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4F9D #9D691B
analogous
#1B909D #1B4F9D #281B9D
triadic
#1B4F9D #9D1B4F #4F9D1B
tetradic
#1B4F9D #9D1B90 #9D691B #1B9D28
square
#1B4F9D #9D1B90 #9D691B #1B9D28
split-complementary
#1B4F9D #9D281B #909D1B
monochromatic
#091A35 #123569 #1B4F9D #2469D1 #518BE1

Accessibility & contrast

On white

7.92
#1B4F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#1B4F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4F9D
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4F9D#FFFFFF#000000##FFFFFF
##1B4F9D1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2157A0
Deuteranopia (green-blind)
#004C9B
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1b4f9d;
/* rgb */ color: rgb(27, 79, 157);
/* oklch */ color: oklch(44.0% 0.139 258.8);
Tailwind
colors: {
  custom: {
    50: '#6e7fba',
    500: '#1b4f9d',
    950: '#000000',
  },
}
SCSS
$custom: #1b4f9d;
$custom-light: #6e7fba;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4f9d",
  "rgb": {
    "r": 27,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 216,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43953,
    "c": 0.13853,
    "h": 258.8
  },
  "luminance": 0.08259
}

Semantic roles & 50–950 ramp

primary
#1B4F9D
secondary
#C49550
accent
#A63AED
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A12
muted
#7B7C81

Preview Lab

Preview with #1B4F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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