#1B1477#1B1477

#1B1477 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.157 H 273.7°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#1B1477
RGBrgb(27, 20, 119)
HSLhsl(244, 71%, 27%)
HSVhsv(244, 83%, 47%)
CMYKcmyk(77.3%, 83.2%, 0%, 53.3%)
CIE-LABlab(15.82, 37.19, -54.15)
CIE-LCHlch(15.82, 65.69, 304.48°)
OKLaboklab(29.07% 0.0102 -0.1566)
OKLCHoklch(29.07% 0.157 273.7)
XYZxyz(4.0308, 2.0648, 17.6353)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1477 #707714
analogous
#143F77 #1B1477 #4C1477
triadic
#1B1477 #771B14 #14771B
tetradic
#1B1477 #77143F #707714 #14774C
square
#1B1477 #77143F #707714 #14774C
split-complementary
#1B1477 #774C14 #3F7714
monochromatic
#06041A #0F0B43 #1B1477 #271DAB #372ADB

Accessibility & contrast

On white

14.86
#1B1477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1B1477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1477
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1477#FFFFFF#000000##FFFFFF
##1B14771.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7A
Deuteranopia (green-blind)
#002375
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1b1477;
/* rgb */ color: rgb(27, 20, 119);
/* oklch */ color: oklch(29.1% 0.157 273.7);
Tailwind
colors: {
  custom: {
    50: '#69549f',
    500: '#1b1477',
    950: '#000000',
  },
}
SCSS
$custom: #1b1477;
$custom-light: #69549f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1477",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 244.242,
    "s": 71.223,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29069,
    "c": 0.15697,
    "h": 273.7
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#1B1477
secondary
#A5AD3A
accent
#EE3AE1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #1B1477

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

Preview Lab → · Contrast checker → · Palette generator →

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