#1B4E9F#1B4E9F

#1B4E9F is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.143 H 259.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#1B4E9F
RGBrgb(27, 78, 159)
HSLhsl(217, 71%, 36%)
HSVhsv(217, 83%, 62%)
CMYKcmyk(83%, 50.9%, 0%, 37.6%)
CIE-LABlab(34.36, 14.41, -48.69)
CIE-LCHlch(34.36, 50.78, 286.48°)
OKLaboklab(43.88% -0.0257 -0.1402)
OKLCHoklch(43.88% 0.143 259.6)
XYZxyz(9.4321, 8.1838, 33.8767)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4E9F #9F6C1B
analogous
#1B909F #1B4E9F #2A1B9F
triadic
#1B4E9F #9F1B4E #4E9F1B
tetradic
#1B4E9F #9F1B90 #9F6C1B #1B9F2A
square
#1B4E9F #9F1B90 #9F6C1B #1B9F2A
split-complementary
#1B4E9F #9F2A1B #909F1B
monochromatic
#091B36 #12346B #1B4E9F #2468D3 #538AE2

Accessibility & contrast

On white

7.96
#1B4E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#1B4E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4E9F
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4E9F#FFFFFF#000000##FFFFFF
##1B4E9F1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B57A2
Deuteranopia (green-blind)
#004B9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1b4e9f;
/* rgb */ color: rgb(27, 78, 159);
/* oklch */ color: oklch(43.9% 0.143 259.6);
Tailwind
colors: {
  custom: {
    50: '#6f7ebc',
    500: '#1b4e9f',
    950: '#000000',
  },
}
SCSS
$custom: #1b4e9f;
$custom-light: #6f7ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4e9f",
  "rgb": {
    "r": 27,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 216.818,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43881,
    "c": 0.14254,
    "h": 259.6
  },
  "luminance": 0.08185
}

Semantic roles & 50–950 ramp

primary
#1B4E9F
secondary
#C59851
accent
#A83AEE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1B4E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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