#1B2887#1B2887

#1B2887 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.157 H 269.3°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#1B2887
RGBrgb(27, 40, 135)
HSLhsl(233, 67%, 32%)
HSVhsv(233, 80%, 53%)
CMYKcmyk(80%, 70.4%, 0%, 47.1%)
CIE-LABlab(21.94, 30.82, -54.21)
CIE-LCHlch(21.94, 62.35, 299.62°)
OKLaboklab(33.96% -0.0018 -0.1569)
OKLCHoklch(33.96% 0.157 269.3)
XYZxyz(5.5825, 3.4992, 23.2982)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2887 #877A1B
analogous
#1B5E87 #1B2887 #441B87
triadic
#1B2887 #871B28 #28871B
tetradic
#1B2887 #871B5E #877A1B #1B8744
square
#1B2887 #871B5E #877A1B #1B8744
split-complementary
#1B2887 #87441B #5E871B
monochromatic
#070A21 #111954 #1B2887 #2537BA #4355D9

Accessibility & contrast

On white

12.35
#1B2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1B2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2887
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2887#FFFFFF#000000##FFFFFF
##1B28871.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2887;
/* rgb */ color: rgb(27, 40, 135);
/* oklch */ color: oklch(34.0% 0.157 269.3);
Tailwind
colors: {
  custom: {
    50: '#6b62ab',
    500: '#1b2887',
    950: '#000000',
  },
}
SCSS
$custom: #1b2887;
$custom-light: #6b62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2887",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 232.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33955,
    "c": 0.15696,
    "h": 269.3
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#1B2887
secondary
#BAAC44
accent
#D53EEA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B2887

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

Preview Lab → · Contrast checker → · Palette generator →

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