#1B2879#1B2879

#1B2879 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.138 H 269.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#1B2879
RGBrgb(27, 40, 121)
HSLhsl(232, 64%, 29%)
HSVhsv(232, 78%, 47%)
CMYKcmyk(77.7%, 66.9%, 0%, 52.5%)
CIE-LABlab(20.56, 25.43, -47.63)
CIE-LCHlch(20.56, 53.99, 298.10°)
OKLaboklab(32.53% -0.0007 -0.1377)
OKLCHoklch(32.53% 0.138 269.7)
XYZxyz(4.6608, 3.1306, 18.4441)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2879 #796C1B
analogous
#1B5779 #1B2879 #3D1B79
triadic
#1B2879 #791B28 #28791B
tetradic
#1B2879 #791B57 #796C1B #1B793D
square
#1B2879 #791B57 #796C1B #1B793D
split-complementary
#1B2879 #793D1B #57791B
monochromatic
#060819 #101747 #1B2879 #2639AB #3B50D3

Accessibility & contrast

On white

12.91
#1B2879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2879
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2879#FFFFFF#000000##FFFFFF
##1B28791.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b2879;
/* rgb */ color: rgb(27, 40, 121);
/* oklch */ color: oklch(32.5% 0.138 269.7);
Tailwind
colors: {
  custom: {
    50: '#6762a1',
    500: '#1b2879',
    950: '#000000',
  },
}
SCSS
$custom: #1b2879;
$custom-light: #6762a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2879",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 231.702,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32525,
    "c": 0.13772,
    "h": 269.7
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B2879

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

Preview Lab → · Contrast checker → · Palette generator →

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