#1B1578#1B1578

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

Color values

HEX#1B1578
RGBrgb(27, 21, 120)
HSLhsl(244, 70%, 28%)
HSVhsv(244, 83%, 47%)
CMYKcmyk(77.5%, 82.5%, 0%, 52.9%)
CIE-LABlab(16.13, 36.99, -54.29)
CIE-LCHlch(16.13, 65.69, 304.27°)
OKLaboklab(29.32% 0.0095 -0.157)
OKLCHoklch(29.32% 0.157 273.5)
XYZxyz(4.1092, 2.1250, 17.9593)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1578 #727815
analogous
#154178 #1B1578 #4C1578
triadic
#1B1578 #781B15 #15781B
tetradic
#1B1578 #781541 #727815 #15784C
square
#1B1578 #781541 #727815 #15784C
split-complementary
#1B1578 #784C15 #417815
monochromatic
#06051A #0F0C44 #1B1578 #271EAC #382DDA

Accessibility & contrast

On white

14.74
#1B1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1B1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1578
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1578#FFFFFF#000000##FFFFFF
##1B15781.0014.741.4314.74
#FFFFFF14.741.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b1578;
/* rgb */ color: rgb(27, 21, 120);
/* oklch */ color: oklch(29.3% 0.157 273.5);
Tailwind
colors: {
  custom: {
    50: '#6955a0',
    500: '#1b1578',
    950: '#000000',
  },
}
SCSS
$custom: #1b1578;
$custom-light: #6955a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1578",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 243.636,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29318,
    "c": 0.15734,
    "h": 273.5
  },
  "luminance": 0.02125
}

Semantic roles & 50–950 ramp

primary
#1B1578
secondary
#A7AE3B
accent
#ED3BE2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1B1578

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

Preview Lab → · Contrast checker → · Palette generator →

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