#1B1878#1B1878

#1B1878 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.155 H 273.1°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#1B1878
RGBrgb(27, 24, 120)
HSLhsl(242, 67%, 28%)
HSVhsv(242, 80%, 47%)
CMYKcmyk(77.5%, 80%, 0%, 52.9%)
CIE-LABlab(16.71, 35.33, -53.33)
CIE-LCHlch(16.71, 63.97, 303.52°)
OKLaboklab(29.72% 0.0083 -0.1543)
OKLCHoklch(29.72% 0.155 273.1)
XYZxyz(4.1677, 2.2419, 17.9787)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1878 #757818
analogous
#184578 #1B1878 #4B1878
triadic
#1B1878 #781B18 #18781B
tetradic
#1B1878 #781845 #757818 #18784B
square
#1B1878 #781845 #757818 #18784B
split-complementary
#1B1878 #784B18 #457818
monochromatic
#06051A #100E45 #1B1878 #2622AB #3934D6

Accessibility & contrast

On white

14.50
#1B1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1878
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1878#FFFFFF#000000##FFFFFF
##1B18781.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b1878;
/* rgb */ color: rgb(27, 24, 120);
/* oklch */ color: oklch(29.7% 0.155 273.1);
Tailwind
colors: {
  custom: {
    50: '#6957a0',
    500: '#1b1878',
    950: '#000000',
  },
}
SCSS
$custom: #1b1878;
$custom-light: #6957a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1878",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 241.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29723,
    "c": 0.15453,
    "h": 273.1
  },
  "luminance": 0.02242
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B1878

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

Preview Lab → · Contrast checker → · Palette generator →

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