#1B1879#1B1879

#1B1879 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.156 H 273.0°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#1B1879
RGBrgb(27, 24, 121)
HSLhsl(242, 67%, 28%)
HSVhsv(242, 80%, 47%)
CMYKcmyk(77.7%, 80.2%, 0%, 52.5%)
CIE-LABlab(16.83, 35.68, -53.77)
CIE-LCHlch(16.83, 64.53, 303.56°)
OKLaboklab(29.84% 0.0081 -0.1556)
OKLCHoklch(29.84% 0.156 273)
XYZxyz(4.2287, 2.2663, 18.3000)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1879 #767918
analogous
#184579 #1B1879 #4B1879
triadic
#1B1879 #791B18 #18791B
tetradic
#1B1879 #791845 #767918 #18794B
square
#1B1879 #791845 #767918 #18794B
split-complementary
#1B1879 #794B18 #457918
monochromatic
#06051A #100E46 #1B1879 #2622AC #3A35D7

Accessibility & contrast

On white

14.45
#1B1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1B1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1879
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1879#FFFFFF#000000##FFFFFF
##1B18791.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002577
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b1879;
/* rgb */ color: rgb(27, 24, 121);
/* oklch */ color: oklch(29.8% 0.156 273.0);
Tailwind
colors: {
  custom: {
    50: '#6957a1',
    500: '#1b1879',
    950: '#000000',
  },
}
SCSS
$custom: #1b1879;
$custom-light: #6957a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1879",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 241.856,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29841,
    "c": 0.15582,
    "h": 273
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#1B1879
secondary
#AAAE3F
accent
#EA3EE4
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1B1879

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

Preview Lab → · Contrast checker → · Palette generator →

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