#1B1B87#1B1B87

#1B1B87 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.171 H 271.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#1B1B87
RGBrgb(27, 27, 135)
HSLhsl(240, 67%, 32%)
HSVhsv(240, 80%, 53%)
CMYKcmyk(80%, 80%, 0%, 47.1%)
CIE-LABlab(19.08, 38.80, -58.93)
CIE-LCHlch(19.08, 70.56, 303.36°)
OKLaboklab(31.91% 0.0039 -0.1706)
OKLCHoklch(31.91% 0.171 271.3)
XYZxyz(5.2156, 2.7656, 23.1759)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1B87 #87871B
analogous
#1B5187 #1B1B87 #511B87
triadic
#1B1B87 #871B1B #1B871B
tetradic
#1B1B87 #871B51 #87871B #1B8751
square
#1B1B87 #871B51 #87871B #1B8751
split-complementary
#1B1B87 #87511B #51871B
monochromatic
#070721 #111154 #1B1B87 #2525BA #4343D9

Accessibility & contrast

On white

13.52
#1B1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1B1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1B87
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1B87#FFFFFF#000000##FFFFFF
##1B1B871.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b1b87;
/* rgb */ color: rgb(27, 27, 135);
/* oklch */ color: oklch(31.9% 0.171 271.3);
Tailwind
colors: {
  custom: {
    50: '#6d59ab',
    500: '#1b1b87',
    950: '#000000',
  },
}
SCSS
$custom: #1b1b87;
$custom-light: #6d59ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1b87",
  "rgb": {
    "r": 27,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3191,
    "c": 0.17066,
    "h": 271.3
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#1B1B87
secondary
#BABA44
accent
#EA3EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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