#1B1E87#1B1E87

#1B1E87 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.168 H 270.9°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#1B1E87
RGBrgb(27, 30, 135)
HSLhsl(238, 67%, 32%)
HSVhsv(238, 80%, 53%)
CMYKcmyk(80%, 77.8%, 0%, 47.1%)
CIE-LABlab(19.68, 37.08, -57.94)
CIE-LCHlch(19.68, 68.79, 302.62°)
OKLaboklab(32.33% 0.0028 -0.1678)
OKLCHoklch(32.33% 0.168 270.9)
XYZxyz(5.2880, 2.9102, 23.2000)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1E87 #87841B
analogous
#1B5487 #1B1E87 #4E1B87
triadic
#1B1E87 #871B1E #1E871B
tetradic
#1B1E87 #871B54 #87841B #1B874E
square
#1B1E87 #871B54 #87841B #1B874E
split-complementary
#1B1E87 #874E1B #54871B
monochromatic
#070721 #111354 #1B1E87 #2529BA #4347D9

Accessibility & contrast

On white

13.27
#1B1E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1B1E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1E87
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1E87#FFFFFF#000000##FFFFFF
##1B1E871.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002A85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b1e87;
/* rgb */ color: rgb(27, 30, 135);
/* oklch */ color: oklch(32.3% 0.168 270.9);
Tailwind
colors: {
  custom: {
    50: '#6c5bab',
    500: '#1b1e87',
    950: '#000000',
  },
}
SCSS
$custom: #1b1e87;
$custom-light: #6c5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1e87",
  "rgb": {
    "r": 27,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 238.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32334,
    "c": 0.16779,
    "h": 270.9
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#1B1E87
secondary
#BAB744
accent
#E53EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1E87

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

Preview Lab → · Contrast checker → · Palette generator →

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