#1B2876#1B2876

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

Color values

HEX#1B2876
RGBrgb(27, 40, 118)
HSLhsl(231, 63%, 28%)
HSVhsv(231, 77%, 46%)
CMYKcmyk(77.1%, 66.1%, 0%, 53.7%)
CIE-LABlab(20.28, 24.25, -46.18)
CIE-LCHlch(20.28, 52.16, 297.71°)
OKLaboklab(32.23% -0.0006 -0.1335)
OKLCHoklch(32.23% 0.133 269.7)
XYZxyz(4.4797, 3.0581, 17.4902)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2876 #76691B
analogous
#1B5576 #1B2876 #3B1B76
triadic
#1B2876 #761B28 #28761B
tetradic
#1B2876 #761B55 #76691B #1B763B
square
#1B2876 #761B55 #76691B #1B763B
split-complementary
#1B2876 #763B1B #55761B
monochromatic
#060819 #101744 #1B2876 #2639A8 #3A4FD2

Accessibility & contrast

On white

13.03
#1B2876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1B2876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2876
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2876#FFFFFF#000000##FFFFFF
##1B28761.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b2876;
/* rgb */ color: rgb(27, 40, 118);
/* oklch */ color: oklch(32.2% 0.133 269.7);
Tailwind
colors: {
  custom: {
    50: '#67619e',
    500: '#1b2876',
    950: '#000000',
  },
}
SCSS
$custom: #1b2876;
$custom-light: #67619e;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2876",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 231.429,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32229,
    "c": 0.13347,
    "h": 269.7
  },
  "luminance": 0.03059
}

Semantic roles & 50–950 ramp

primary
#1B2876
secondary
#AA9C42
accent
#CE42E6
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1B2876

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

Preview Lab → · Contrast checker → · Palette generator →

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