#1B2977#1B2977

#1B2977 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.134 H 269.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#1B2977
RGBrgb(27, 41, 119)
HSLhsl(231, 63%, 29%)
HSVhsv(231, 77%, 47%)
CMYKcmyk(77.3%, 65.5%, 0%, 53.3%)
CIE-LABlab(20.64, 23.95, -46.23)
CIE-LCHlch(20.64, 52.06, 297.39°)
OKLaboklab(32.52% -0.0013 -0.1336)
OKLCHoklch(32.52% 0.134 269.4)
XYZxyz(4.5736, 3.1503, 17.8162)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2977 #77691B
analogous
#1B5777 #1B2977 #3B1B77
triadic
#1B2977 #771B29 #29771B
tetradic
#1B2977 #771B57 #77691B #1B773B
square
#1B2977 #771B57 #77691B #1B773B
split-complementary
#1B2977 #773B1B #57771B
monochromatic
#060919 #101845 #1B2977 #263AA9 #3A51D2

Accessibility & contrast

On white

12.88
#1B2977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2977
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2977#FFFFFF#000000##FFFFFF
##1B29771.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2977;
/* rgb */ color: rgb(27, 41, 119);
/* oklch */ color: oklch(32.5% 0.134 269.4);
Tailwind
colors: {
  custom: {
    50: '#67629f',
    500: '#1b2977',
    950: '#000000',
  },
}
SCSS
$custom: #1b2977;
$custom-light: #67629f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2977",
  "rgb": {
    "r": 27,
    "g": 41,
    "b": 119
  },
  "hsl": {
    "h": 230.87,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32523,
    "c": 0.13361,
    "h": 269.4
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#1B2977
secondary
#AB9B42
accent
#CD42E6
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1B2977

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

Preview Lab → · Contrast checker → · Palette generator →

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