#1B2487#1B2487

#1B2487 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.162 H 270.1°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#1B2487
RGBrgb(27, 36, 135)
HSLhsl(235, 67%, 32%)
HSVhsv(235, 80%, 53%)
CMYKcmyk(80%, 73.3%, 0%, 47.1%)
CIE-LABlab(20.99, 33.41, -55.77)
CIE-LCHlch(20.99, 65.01, 300.92°)
OKLaboklab(33.27% 0.0002 -0.1615)
OKLCHoklch(33.27% 0.162 270.1)
XYZxyz(5.4546, 3.2434, 23.2555)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2487 #877E1B
analogous
#1B5A87 #1B2487 #481B87
triadic
#1B2487 #871B24 #24871B
tetradic
#1B2487 #871B5A #877E1B #1B8748
square
#1B2487 #871B5A #877E1B #1B8748
split-complementary
#1B2487 #87481B #5A871B
monochromatic
#070921 #111654 #1B2487 #2532BA #4350D9

Accessibility & contrast

On white

12.74
#1B2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1B2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2487
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2487#FFFFFF#000000##FFFFFF
##1B24871.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b2487;
/* rgb */ color: rgb(27, 36, 135);
/* oklch */ color: oklch(33.3% 0.162 270.1);
Tailwind
colors: {
  custom: {
    50: '#6c5fab',
    500: '#1b2487',
    950: '#000000',
  },
}
SCSS
$custom: #1b2487;
$custom-light: #6c5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2487",
  "rgb": {
    "r": 27,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 235,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3327,
    "c": 0.1615,
    "h": 270.1
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#1B2487
secondary
#BAB044
accent
#DB3EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B2487

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

Preview Lab → · Contrast checker → · Palette generator →

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