#1B287F#1B287F

#1B287F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.146 H 269.6°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#1B287F
RGBrgb(27, 40, 127)
HSLhsl(232, 65%, 30%)
HSVhsv(232, 79%, 50%)
CMYKcmyk(78.7%, 68.5%, 0%, 50.2%)
CIE-LABlab(21.14, 27.76, -50.49)
CIE-LCHlch(21.14, 57.61, 298.80°)
OKLaboklab(33.13% -0.0011 -0.1461)
OKLCHoklch(33.13% 0.146 269.6)
XYZxyz(5.0402, 3.2823, 20.4425)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B287F #7F721B
analogous
#1B5A7F #1B287F #401B7F
triadic
#1B287F #7F1B28 #287F1B
tetradic
#1B287F #7F1B5A #7F721B #1B7F40
square
#1B287F #7F1B5A #7F721B #1B7F40
split-complementary
#1B287F #7F401B #5A7F1B
monochromatic
#06081A #10184D #1B287F #2638B1 #3E52D6

Accessibility & contrast

On white

12.68
#1B287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1B287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B287F
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B287F#FFFFFF#000000##FFFFFF
##1B287F1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b287f;
/* rgb */ color: rgb(27, 40, 127);
/* oklch */ color: oklch(33.1% 0.146 269.6);
Tailwind
colors: {
  custom: {
    50: '#6962a5',
    500: '#1b287f',
    950: '#000000',
  },
}
SCSS
$custom: #1b287f;
$custom-light: #6962a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b287f",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 232.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33129,
    "c": 0.14608,
    "h": 269.6
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#1B287F
secondary
#B3A443
accent
#D240E8
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B287F

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

Preview Lab → · Contrast checker → · Palette generator →

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