#1B154B#1B154B

#1B154B is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.3% C 0.096 H 281.6°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#1B154B
RGBrgb(27, 21, 75)
HSLhsl(247, 56%, 19%)
HSVhsv(247, 72%, 29%)
CMYKcmyk(64%, 72%, 0%, 70.6%)
CIE-LABlab(11.12, 20.93, -32.59)
CIE-LCHlch(11.12, 38.73, 302.71°)
OKLaboklab(24.26% 0.0192 -0.0937)
OKLCHoklch(24.26% 0.096 281.6)
XYZxyz(1.9898, 1.2772, 6.7969)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B154B #454B15
analogous
#152A4B #1B154B #36154B
triadic
#1B154B #4B1B15 #154B1B
tetradic
#1B154B #4B152A #454B15 #154B36
square
#1B154B #4B152A #454B15 #154B36
split-complementary
#1B154B #4B3615 #2A4B15
monochromatic
#090718 #0A081B #1B154B #2C227B #3D30AB

Accessibility & contrast

On white

16.73
#1B154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B154B
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B154B#FFFFFF#000000##FFFFFF
##1B154B1.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#001C4A
Tritanopia (blue-blind)
#02232D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1b154b;
/* rgb */ color: rgb(27, 21, 75);
/* oklch */ color: oklch(24.3% 0.096 281.6);
Tailwind
colors: {
  custom: {
    50: '#5e527e',
    500: '#1b154b',
    950: '#000000',
  },
}
SCSS
$custom: #1b154b;
$custom-light: #5e527e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b154b",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 246.667,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24257,
    "c": 0.09569,
    "h": 281.6
  },
  "luminance": 0.01277
}

Semantic roles & 50–950 ramp

primary
#1B154B
secondary
#7B8339
accent
#E048CF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1B154B

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

Preview Lab → · Contrast checker → · Palette generator →

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