#1B1887#1B1887

#1B1887 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.173 H 271.6°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#1B1887
RGBrgb(27, 24, 135)
HSLhsl(242, 70%, 31%)
HSVhsv(242, 82%, 53%)
CMYKcmyk(80%, 82.2%, 0%, 47.1%)
CIE-LABlab(18.52, 40.42, -59.86)
CIE-LCHlch(18.52, 72.23, 304.03°)
OKLaboklab(31.52% 0.0048 -0.1733)
OKLCHoklch(31.52% 0.173 271.6)
XYZxyz(5.1503, 2.6350, 23.1541)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1887 #848718
analogous
#184C87 #1B1887 #521887
triadic
#1B1887 #871B18 #18871B
tetradic
#1B1887 #87184C #848718 #188752
square
#1B1887 #87184C #848718 #188752
split-complementary
#1B1887 #875218 #4C8718
monochromatic
#06061F #110F53 #1B1887 #2521BB #413DDC

Accessibility & contrast

On white

13.75
#1B1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1B1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1887
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1887#FFFFFF#000000##FFFFFF
##1B18871.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002785
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b1887;
/* rgb */ color: rgb(27, 24, 135);
/* oklch */ color: oklch(31.5% 0.173 271.6);
Tailwind
colors: {
  custom: {
    50: '#6d58ab',
    500: '#1b1887',
    950: '#000000',
  },
}
SCSS
$custom: #1b1887;
$custom-light: #6d58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1887",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 241.622,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31518,
    "c": 0.17334,
    "h": 271.6
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#1B1887
secondary
#B7BB40
accent
#ED3BE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1B1887

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

Preview Lab → · Contrast checker → · Palette generator →

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