#1B1886#1B1886

#1B1886 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.172 H 271.7°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#1B1886
RGBrgb(27, 24, 134)
HSLhsl(242, 70%, 31%)
HSVhsv(242, 82%, 53%)
CMYKcmyk(79.9%, 82.1%, 0%, 47.5%)
CIE-LABlab(18.40, 40.09, -59.44)
CIE-LCHlch(18.40, 71.69, 304.00°)
OKLaboklab(31.4% 0.0051 -0.172)
OKLCHoklch(31.4% 0.172 271.7)
XYZxyz(5.0803, 2.6070, 22.7851)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1886 #838618
analogous
#184C86 #1B1886 #521886
triadic
#1B1886 #861B18 #18861B
tetradic
#1B1886 #86184C #838618 #188652
square
#1B1886 #86184C #838618 #188652
split-complementary
#1B1886 #865218 #4C8618
monochromatic
#06051E #110F52 #1B1886 #2521BA #413CDC

Accessibility & contrast

On white

13.80
#1B1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1B1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1886
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1886#FFFFFF#000000##FFFFFF
##1B18861.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002784
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b1886;
/* rgb */ color: rgb(27, 24, 134);
/* oklch */ color: oklch(31.4% 0.172 271.7);
Tailwind
colors: {
  custom: {
    50: '#6d58aa',
    500: '#1b1886',
    950: '#000000',
  },
}
SCSS
$custom: #1b1886;
$custom-light: #6d58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1886",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 241.636,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31396,
    "c": 0.17211,
    "h": 271.7
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#1B1886
secondary
#B6BA40
accent
#EC3BE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1B1886

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

Preview Lab → · Contrast checker → · Palette generator →

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