#1B4178#1B4178

#1B4178 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 37.9% C 0.103 H 258.0°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#1B4178
RGBrgb(27, 65, 120)
HSLhsl(215, 63%, 29%)
HSVhsv(215, 78%, 47%)
CMYKcmyk(77.5%, 45.8%, 0%, 52.9%)
CIE-LABlab(27.76, 7.44, -35.32)
CIE-LCHlch(27.76, 36.10, 281.90°)
OKLaboklab(37.94% -0.0215 -0.1011)
OKLCHoklch(37.94% 0.103 258)
XYZxyz(5.7312, 5.3690, 18.4999)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4178 #78521B
analogous
#1B7078 #1B4178 #241B78
triadic
#1B4178 #781B41 #41781B
tetradic
#1B4178 #781B70 #78521B #1B7824
square
#1B4178 #781B70 #78521B #1B7824
split-complementary
#1B4178 #78241B #70781B
monochromatic
#060E19 #102646 #1B4178 #265CAA #3B79D3

Accessibility & contrast

On white

10.13
#1B4178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1B4178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4178
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4178#FFFFFF#000000##FFFFFF
##1B41781.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25467A
Deuteranopia (green-blind)
#133E77
Tritanopia (blue-blind)
#004E56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1b4178;
/* rgb */ color: rgb(27, 65, 120);
/* oklch */ color: oklch(37.9% 0.103 258.0);
Tailwind
colors: {
  custom: {
    50: '#66759f',
    500: '#1b4178',
    950: '#000000',
  },
}
SCSS
$custom: #1b4178;
$custom-light: #66759f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4178",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 215.484,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37941,
    "c": 0.1034,
    "h": 258
  },
  "luminance": 0.0537
}

Semantic roles & 50–950 ramp

primary
#1B4178
secondary
#AC8143
accent
#A341E6
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #1B4178

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

Preview Lab → · Contrast checker → · Palette generator →

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