#1B1478#1B1478

#1B1478 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.158 H 273.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#1B1478
RGBrgb(27, 20, 120)
HSLhsl(244, 71%, 27%)
HSVhsv(244, 83%, 47%)
CMYKcmyk(77.5%, 83.3%, 0%, 52.9%)
CIE-LABlab(15.95, 37.52, -54.59)
CIE-LCHlch(15.95, 66.24, 304.50°)
OKLaboklab(29.19% 0.0099 -0.1579)
OKLCHoklch(29.19% 0.158 273.6)
XYZxyz(4.0912, 2.0890, 17.9533)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1478 #717814
analogous
#143F78 #1B1478 #4D1478
triadic
#1B1478 #781B14 #14781B
tetradic
#1B1478 #78143F #717814 #14784D
square
#1B1478 #78143F #717814 #14784D
split-complementary
#1B1478 #784D14 #3F7814
monochromatic
#06041A #0F0B44 #1B1478 #271DAC #372BDC

Accessibility & contrast

On white

14.81
#1B1478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1B1478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1478
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1478#FFFFFF#000000##FFFFFF
##1B14781.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7B
Deuteranopia (green-blind)
#002376
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b1478;
/* rgb */ color: rgb(27, 20, 120);
/* oklch */ color: oklch(29.2% 0.158 273.6);
Tailwind
colors: {
  custom: {
    50: '#6954a0',
    500: '#1b1478',
    950: '#000000',
  },
}
SCSS
$custom: #1b1478;
$custom-light: #6954a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1478",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 244.2,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.2919,
    "c": 0.15823,
    "h": 273.6
  },
  "luminance": 0.02089
}

Semantic roles & 50–950 ramp

primary
#1B1478
secondary
#A6AE3A
accent
#EE3AE2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1B1478

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

Preview Lab → · Contrast checker → · Palette generator →

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