#1B287D#1B287D

#1B287D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.143 H 269.6°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1B287D
RGBrgb(27, 40, 125)
HSLhsl(232, 64%, 30%)
HSVhsv(232, 78%, 49%)
CMYKcmyk(78.4%, 68%, 0%, 51%)
CIE-LABlab(20.95, 26.99, -49.54)
CIE-LCHlch(20.95, 56.41, 298.58°)
OKLaboklab(32.93% -0.001 -0.1433)
OKLCHoklch(32.93% 0.143 269.6)
XYZxyz(4.9112, 3.2307, 19.7628)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B287D #7D701B
analogous
#1B597D #1B287D #3F1B7D
triadic
#1B287D #7D1B28 #287D1B
tetradic
#1B287D #7D1B59 #7D701B #1B7D3F
square
#1B287D #7D1B59 #7D701B #1B7D3F
split-complementary
#1B287D #7D3F1B #597D1B
monochromatic
#050819 #10184B #1B287D #2638AF #3D51D5

Accessibility & contrast

On white

12.76
#1B287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B287D
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B287D#FFFFFF#000000##FFFFFF
##1B287D1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b287d;
/* rgb */ color: rgb(27, 40, 125);
/* oklch */ color: oklch(32.9% 0.143 269.6);
Tailwind
colors: {
  custom: {
    50: '#6962a4',
    500: '#1b287d',
    950: '#000000',
  },
}
SCSS
$custom: #1b287d;
$custom-light: #6962a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b287d",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 232.041,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32926,
    "c": 0.14331,
    "h": 269.6
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#1B287D
secondary
#B1A243
accent
#D140E7
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B287D

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

Preview Lab → · Contrast checker → · Palette generator →

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