#1B1876#1B1876

#1B1876 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.152 H 273.3°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#1B1876
RGBrgb(27, 24, 118)
HSLhsl(242, 66%, 28%)
HSVhsv(242, 80%, 46%)
CMYKcmyk(77.1%, 79.7%, 0%, 53.7%)
CIE-LABlab(16.47, 34.63, -52.43)
CIE-LCHlch(16.47, 62.84, 303.45°)
OKLaboklab(29.49% 0.0087 -0.1517)
OKLCHoklch(29.49% 0.152 273.3)
XYZxyz(4.0476, 2.1939, 17.3462)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1876 #737618
analogous
#184476 #1B1876 #4A1876
triadic
#1B1876 #761B18 #18761B
tetradic
#1B1876 #761844 #737618 #18764A
square
#1B1876 #761844 #737618 #18764A
split-complementary
#1B1876 #764A18 #447618
monochromatic
#060519 #0F0E43 #1B1876 #2722A9 #3833D5

Accessibility & contrast

On white

14.60
#1B1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1B1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1876
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1876#FFFFFF#000000##FFFFFF
##1B18761.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b1876;
/* rgb */ color: rgb(27, 24, 118);
/* oklch */ color: oklch(29.5% 0.152 273.3);
Tailwind
colors: {
  custom: {
    50: '#68579f',
    500: '#1b1876',
    950: '#000000',
  },
}
SCSS
$custom: #1b1876;
$custom-light: #68579f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1876",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 241.915,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29488,
    "c": 0.15196,
    "h": 273.3
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#1B1876
secondary
#A8AB3F
accent
#E93FE4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #1B1876

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

Preview Lab → · Contrast checker → · Palette generator →

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