#1B1986#1B1986

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

Color values

HEX#1B1986
RGBrgb(27, 25, 134)
HSLhsl(241, 69%, 31%)
HSVhsv(241, 81%, 53%)
CMYKcmyk(79.9%, 81.3%, 0%, 47.5%)
CIE-LABlab(18.58, 39.56, -59.13)
CIE-LCHlch(18.58, 71.14, 303.78°)
OKLaboklab(31.53% 0.0047 -0.1712)
OKLCHoklch(31.53% 0.171 271.6)
XYZxyz(5.1012, 2.6489, 22.7921)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1986 #848619
analogous
#194D86 #1B1986 #511986
triadic
#1B1986 #861B19 #19861B
tetradic
#1B1986 #86194D #848619 #198651
square
#1B1986 #86194D #848619 #198651
split-complementary
#1B1986 #865119 #4D8619
monochromatic
#06061F #110F52 #1B1986 #2523BA #413EDB

Accessibility & contrast

On white

13.73
#1B1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1986
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1986#FFFFFF#000000##FFFFFF
##1B19861.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002884
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b1986;
/* rgb */ color: rgb(27, 25, 134);
/* oklch */ color: oklch(31.5% 0.171 271.6);
Tailwind
colors: {
  custom: {
    50: '#6d58aa',
    500: '#1b1986',
    950: '#000000',
  },
}
SCSS
$custom: #1b1986;
$custom-light: #6d58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1986",
  "rgb": {
    "r": 27,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 241.101,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31525,
    "c": 0.17124,
    "h": 271.6
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#1B1986
secondary
#B7BA41
accent
#EB3CE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1B1986

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

Preview Lab → · Contrast checker → · Palette generator →

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