#1B4A8D#1B4A8D

#1B4A8D is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.6% C 0.122 H 258.0°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#1B4A8D
RGBrgb(27, 74, 141)
HSLhsl(215, 68%, 33%)
HSVhsv(215, 81%, 55%)
CMYKcmyk(80.9%, 47.5%, 0%, 44.7%)
CIE-LABlab(31.93, 9.83, -41.68)
CIE-LCHlch(31.93, 42.83, 283.27°)
OKLaboklab(41.61% -0.0255 -0.1197)
OKLCHoklch(41.61% 0.122 258)
XYZxyz(7.7067, 7.0527, 26.1493)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4A8D #8D5E1B
analogous
#1B838D #1B4A8D #251B8D
triadic
#1B4A8D #8D1B4A #4A8D1B
tetradic
#1B4A8D #8D1B83 #8D5E1B #1B8D25
square
#1B4A8D #8D1B83 #8D5E1B #1B8D25
split-complementary
#1B4A8D #8D251B #838D1B
monochromatic
#071426 #112F5A #1B4A8D #2565C0 #4784DC

Accessibility & contrast

On white

8.71
#1B4A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1B4A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4A8D
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4A8D#FFFFFF#000000##FFFFFF
##1B4A8D1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265190
Deuteranopia (green-blind)
#07468C
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1b4a8d;
/* rgb */ color: rgb(27, 74, 141);
/* oklch */ color: oklch(41.6% 0.122 258.0);
Tailwind
colors: {
  custom: {
    50: '#6a7baf',
    500: '#1b4a8d',
    950: '#000000',
  },
}
SCSS
$custom: #1b4a8d;
$custom-light: #6a7baf;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4a8d",
  "rgb": {
    "r": 27,
    "g": 74,
    "b": 141
  },
  "hsl": {
    "h": 215.263,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4161,
    "c": 0.12235,
    "h": 258
  },
  "luminance": 0.07054
}

Semantic roles & 50–950 ramp

primary
#1B4A8D
secondary
#BD8C46
accent
#A33DEB
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1B4A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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