#1B2987#1B2987

#1B2987 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.156 H 269.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#1B2987
RGBrgb(27, 41, 135)
HSLhsl(232, 67%, 32%)
HSVhsv(232, 80%, 53%)
CMYKcmyk(80%, 69.6%, 0%, 47.1%)
CIE-LABlab(22.19, 30.15, -53.80)
CIE-LCHlch(22.19, 61.68, 299.27°)
OKLaboklab(34.13% -0.0023 -0.1558)
OKLCHoklch(34.13% 0.156 269.1)
XYZxyz(5.6166, 3.5675, 23.3096)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2987 #87791B
analogous
#1B5F87 #1B2987 #431B87
triadic
#1B2987 #871B29 #29871B
tetradic
#1B2987 #871B5F #87791B #1B8743
square
#1B2987 #871B5F #87791B #1B8743
split-complementary
#1B2987 #87431B #5F871B
monochromatic
#070A21 #111A54 #1B2987 #2538BA #4356D9

Accessibility & contrast

On white

12.25
#1B2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1B2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2987
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2987#FFFFFF#000000##FFFFFF
##1B29871.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2987;
/* rgb */ color: rgb(27, 41, 135);
/* oklch */ color: oklch(34.1% 0.156 269.1);
Tailwind
colors: {
  custom: {
    50: '#6b63ab',
    500: '#1b2987',
    950: '#000000',
  },
}
SCSS
$custom: #1b2987;
$custom-light: #6b63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2987",
  "rgb": {
    "r": 27,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 232.222,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34133,
    "c": 0.15579,
    "h": 269.1
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#1B2987
secondary
#BAAB44
accent
#D33EEA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B2987

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

Preview Lab → · Contrast checker → · Palette generator →

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