#1B154D#1B154D

#1B154D is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.5% C 0.099 H 281.1°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#1B154D
RGBrgb(27, 21, 77)
HSLhsl(246, 57%, 19%)
HSVhsv(246, 73%, 30%)
CMYKcmyk(64.9%, 72.7%, 0%, 69.8%)
CIE-LABlab(11.31, 21.67, -33.65)
CIE-LCHlch(11.31, 40.03, 302.78°)
OKLaboklab(24.46% 0.0189 -0.0969)
OKLCHoklch(24.46% 0.099 281.1)
XYZxyz(2.0593, 1.3050, 7.1631)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B154D #474D15
analogous
#152B4D #1B154D #37154D
triadic
#1B154D #4D1B15 #154D1B
tetradic
#1B154D #4D152B #474D15 #154D37
square
#1B154D #4D152B #474D15 #154D37
split-complementary
#1B154D #4D3715 #2B4D15
monochromatic
#080718 #0A081D #1B154D #2C227D #3D2FAD

Accessibility & contrast

On white

16.65
#1B154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#1B154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B154D
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B154D#FFFFFF#000000##FFFFFF
##1B154D1.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001C4C
Tritanopia (blue-blind)
#00232E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1b154d;
/* rgb */ color: rgb(27, 21, 77);
/* oklch */ color: oklch(24.5% 0.099 281.1);
Tailwind
colors: {
  custom: {
    50: '#5e537f',
    500: '#1b154d',
    950: '#000000',
  },
}
SCSS
$custom: #1b154d;
$custom-light: #5e537f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b154d",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 246.429,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.24459,
    "c": 0.09869,
    "h": 281.1
  },
  "luminance": 0.01305
}

Semantic roles & 50–950 ramp

primary
#1B154D
secondary
#7D8539
accent
#E047D0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B154D

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

Preview Lab → · Contrast checker → · Palette generator →

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