#1B1877#1B1877

#1B1877 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.153 H 273.2°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#1B1877
RGBrgb(27, 24, 119)
HSLhsl(242, 66%, 28%)
HSVhsv(242, 80%, 47%)
CMYKcmyk(77.3%, 79.8%, 0%, 53.3%)
CIE-LABlab(16.59, 34.98, -52.88)
CIE-LCHlch(16.59, 63.40, 303.48°)
OKLaboklab(29.6% 0.0085 -0.153)
OKLCHoklch(29.6% 0.153 273.2)
XYZxyz(4.1073, 2.2178, 17.6608)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1877 #747718
analogous
#184477 #1B1877 #4A1877
triadic
#1B1877 #771B18 #18771B
tetradic
#1B1877 #771844 #747718 #18774A
square
#1B1877 #771844 #747718 #18774A
split-complementary
#1B1877 #774A18 #447718
monochromatic
#060519 #0F0E44 #1B1877 #2722AA #3933D6

Accessibility & contrast

On white

14.55
#1B1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1B1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1877
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1877#FFFFFF#000000##FFFFFF
##1B18771.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002475
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b1877;
/* rgb */ color: rgb(27, 24, 119);
/* oklch */ color: oklch(29.6% 0.153 273.2);
Tailwind
colors: {
  custom: {
    50: '#69579f',
    500: '#1b1877',
    950: '#000000',
  },
}
SCSS
$custom: #1b1877;
$custom-light: #69579f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1877",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 241.895,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29605,
    "c": 0.15325,
    "h": 273.2
  },
  "luminance": 0.02218
}

Semantic roles & 50–950 ramp

primary
#1B1877
secondary
#A9AC3F
accent
#E93EE4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #1B1877

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

Preview Lab → · Contrast checker → · Palette generator →

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