#1B174E#1B174E

#1B174E is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.9% C 0.097 H 279.9°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#1B174E
RGBrgb(27, 23, 78)
HSLhsl(244, 54%, 20%)
HSVhsv(244, 71%, 31%)
CMYKcmyk(65.4%, 70.5%, 0%, 69.4%)
CIE-LABlab(11.93, 20.65, -33.33)
CIE-LCHlch(11.93, 39.21, 301.78°)
OKLaboklab(24.94% 0.0168 -0.0959)
OKLCHoklch(24.94% 0.097 279.9)
XYZxyz(2.1331, 1.3957, 7.3632)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B174E #4A4E17
analogous
#172E4E #1B174E #37174E
triadic
#1B174E #4E1B17 #174E1B
tetradic
#1B174E #4E172E #4A4E17 #174E37
square
#1B174E #4E172E #4A4E17 #174E37
split-complementary
#1B174E #4E3717 #2E4E17
monochromatic
#080718 #0B091F #1B174E #2B257D #3C33AD

Accessibility & contrast

On white

16.42
#1B174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1B174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B174E
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B174E#FFFFFF#000000##FFFFFF
##1B174E1.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#001D4D
Tritanopia (blue-blind)
#002530
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1b174e;
/* rgb */ color: rgb(27, 23, 78);
/* oklch */ color: oklch(24.9% 0.097 279.9);
Tailwind
colors: {
  custom: {
    50: '#5e5480',
    500: '#1b174e',
    950: '#000000',
  },
}
SCSS
$custom: #1b174e;
$custom-light: #5e5480;
$custom-dark: #000000;
JSON
{
  "hex": "#1b174e",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 244.364,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.24939,
    "c": 0.09736,
    "h": 279.9
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#1B174E
secondary
#80853C
accent
#DE4AD3
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B174E

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

Preview Lab → · Contrast checker → · Palette generator →

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