#1B4A9F#1B4A9F

#1B4A9F is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.0% C 0.148 H 261.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#1B4A9F
RGBrgb(27, 74, 159)
HSLhsl(219, 71%, 36%)
HSVhsv(219, 83%, 62%)
CMYKcmyk(83%, 53.5%, 0%, 37.6%)
CIE-LABlab(33.21, 17.12, -50.56)
CIE-LCHlch(33.21, 53.38, 288.70°)
OKLaboklab(43% -0.0228 -0.1458)
OKLCHoklch(43% 0.148 261.1)
XYZxyz(9.1565, 7.6327, 33.7848)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4A9F #9F701B
analogous
#1B8C9F #1B4A9F #2E1B9F
triadic
#1B4A9F #9F1B4A #4A9F1B
tetradic
#1B4A9F #9F1B8C #9F701B #1B9F2E
square
#1B4A9F #9F1B8C #9F701B #1B9F2E
split-complementary
#1B4A9F #9F2E1B #8C9F1B
monochromatic
#091936 #12326B #1B4A9F #2462D3 #5386E2

Accessibility & contrast

On white

8.31
#1B4A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#1B4A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4A9F
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4A9F#FFFFFF#000000##FFFFFF
##1B4A9F1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0954A2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1b4a9f;
/* rgb */ color: rgb(27, 74, 159);
/* oklch */ color: oklch(43.0% 0.148 261.1);
Tailwind
colors: {
  custom: {
    50: '#6f7bbc',
    500: '#1b4a9f',
    950: '#000000',
  },
}
SCSS
$custom: #1b4a9f;
$custom-light: #6f7bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4a9f",
  "rgb": {
    "r": 27,
    "g": 74,
    "b": 159
  },
  "hsl": {
    "h": 218.636,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42998,
    "c": 0.14756,
    "h": 261.1
  },
  "luminance": 0.07634
}

Semantic roles & 50–950 ramp

primary
#1B4A9F
secondary
#C59C51
accent
#AE3AEE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1B4A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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