#1B287B#1B287B

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

Color values

HEX#1B287B
RGBrgb(27, 40, 123)
HSLhsl(232, 64%, 29%)
HSVhsv(232, 78%, 48%)
CMYKcmyk(78%, 67.5%, 0%, 51.8%)
CIE-LABlab(20.75, 26.21, -48.59)
CIE-LCHlch(20.75, 55.20, 298.34°)
OKLaboklab(32.73% -0.0008 -0.1405)
OKLCHoklch(32.73% 0.141 269.7)
XYZxyz(4.7847, 3.1801, 19.0967)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B287B #7B6E1B
analogous
#1B587B #1B287B #3E1B7B
triadic
#1B287B #7B1B28 #287B1B
tetradic
#1B287B #7B1B58 #7B6E1B #1B7B3E
square
#1B287B #7B1B58 #7B6E1B #1B7B3E
split-complementary
#1B287B #7B3E1B #587B1B
monochromatic
#060819 #101849 #1B287B #2638AD #3C51D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B287B#FFFFFF#000000##FFFFFF
##1B287B1.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)
#00377E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b287b;
/* rgb */ color: rgb(27, 40, 123);
/* oklch */ color: oklch(32.7% 0.141 269.7);
Tailwind
colors: {
  custom: {
    50: '#6862a2',
    500: '#1b287b',
    950: '#000000',
  },
}
SCSS
$custom: #1b287b;
$custom-light: #6862a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b287b",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 231.875,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32725,
    "c": 0.14053,
    "h": 269.7
  },
  "luminance": 0.03181
}

Semantic roles & 50–950 ramp

primary
#1B287B
secondary
#AFA043
accent
#D141E7
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B287B

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

Preview Lab → · Contrast checker → · Palette generator →

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