#1B2387#1B2387

#1B2387 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.163 H 270.2°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#1B2387
RGBrgb(27, 35, 135)
HSLhsl(236, 67%, 32%)
HSVhsv(236, 80%, 53%)
CMYKcmyk(80%, 74.1%, 0%, 47.1%)
CIE-LABlab(20.77, 34.04, -56.15)
CIE-LCHlch(20.77, 65.66, 301.23°)
OKLaboklab(33.11% 0.0007 -0.1626)
OKLCHoklch(33.11% 0.163 270.2)
XYZxyz(5.4247, 3.1837, 23.2456)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2387 #877F1B
analogous
#1B5987 #1B2387 #491B87
triadic
#1B2387 #871B23 #23871B
tetradic
#1B2387 #871B59 #877F1B #1B8749
square
#1B2387 #871B59 #877F1B #1B8749
split-complementary
#1B2387 #87491B #59871B
monochromatic
#070921 #111654 #1B2387 #2530BA #434ED9

Accessibility & contrast

On white

12.83
#1B2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1B2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2387
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2387#FFFFFF#000000##FFFFFF
##1B23871.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2387;
/* rgb */ color: rgb(27, 35, 135);
/* oklch */ color: oklch(33.1% 0.163 270.2);
Tailwind
colors: {
  custom: {
    50: '#6c5fab',
    500: '#1b2387',
    950: '#000000',
  },
}
SCSS
$custom: #1b2387;
$custom-light: #6c5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2387",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 235.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33106,
    "c": 0.16259,
    "h": 270.2
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#1B2387
secondary
#BAB144
accent
#DD3EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B2387

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

Preview Lab → · Contrast checker → · Palette generator →

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