#1B287A#1B287A

#1B287A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.139 H 269.7°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#1B287A
RGBrgb(27, 40, 122)
HSLhsl(232, 64%, 29%)
HSVhsv(232, 78%, 48%)
CMYKcmyk(77.9%, 67.2%, 0%, 52.2%)
CIE-LABlab(20.66, 25.82, -48.11)
CIE-LCHlch(20.66, 54.60, 298.22°)
OKLaboklab(32.63% -0.0008 -0.1391)
OKLCHoklch(32.63% 0.139 269.7)
XYZxyz(4.7224, 3.1552, 18.7687)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B287A #7A6D1B
analogous
#1B587A #1B287A #3D1B7A
triadic
#1B287A #7A1B28 #287A1B
tetradic
#1B287A #7A1B58 #7A6D1B #1B7A3D
square
#1B287A #7A1B58 #7A6D1B #1B7A3D
split-complementary
#1B287A #7A3D1B #587A1B
monochromatic
#060819 #101848 #1B287A #2638AC #3C50D4

Accessibility & contrast

On white

12.87
#1B287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1B287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B287A
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B287A#FFFFFF#000000##FFFFFF
##1B287A1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b287a;
/* rgb */ color: rgb(27, 40, 122);
/* oklch */ color: oklch(32.6% 0.139 269.7);
Tailwind
colors: {
  custom: {
    50: '#6862a1',
    500: '#1b287a',
    950: '#000000',
  },
}
SCSS
$custom: #1b287a;
$custom-light: #6862a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b287a",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 231.789,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32625,
    "c": 0.13912,
    "h": 269.7
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#1B287A
secondary
#AE9F43
accent
#D041E7
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B287A

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

Preview Lab → · Contrast checker → · Palette generator →

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