#1B2877#1B2877

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

Color values

HEX#1B2877
RGBrgb(27, 40, 119)
HSLhsl(232, 63%, 29%)
HSVhsv(232, 77%, 47%)
CMYKcmyk(77.3%, 66.4%, 0%, 53.3%)
CIE-LABlab(20.37, 24.64, -46.66)
CIE-LCHlch(20.37, 52.77, 297.84°)
OKLaboklab(32.33% -0.0006 -0.1349)
OKLCHoklch(32.33% 0.135 269.7)
XYZxyz(4.5394, 3.0820, 17.8048)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2877 #776A1B
analogous
#1B5677 #1B2877 #3C1B77
triadic
#1B2877 #771B28 #28771B
tetradic
#1B2877 #771B56 #776A1B #1B773C
square
#1B2877 #771B56 #776A1B #1B773C
split-complementary
#1B2877 #773C1B #56771B
monochromatic
#060819 #101745 #1B2877 #2639A9 #3A50D2

Accessibility & contrast

On white

12.99
#1B2877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1B2877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2877
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2877#FFFFFF#000000##FFFFFF
##1B28771.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b2877;
/* rgb */ color: rgb(27, 40, 119);
/* oklch */ color: oklch(32.3% 0.135 269.7);
Tailwind
colors: {
  custom: {
    50: '#67619f',
    500: '#1b2877',
    950: '#000000',
  },
}
SCSS
$custom: #1b2877;
$custom-light: #67619f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2877",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 231.522,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32327,
    "c": 0.13489,
    "h": 269.7
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#1B2877
secondary
#AB9D42
accent
#CF42E6
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1B2877

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

Preview Lab → · Contrast checker → · Palette generator →

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