#1B2D77#1B2D77

#1B2D77 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.128 H 268.1°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#1B2D77
RGBrgb(27, 45, 119)
HSLhsl(228, 63%, 29%)
HSVhsv(228, 77%, 47%)
CMYKcmyk(77.3%, 62.2%, 0%, 53.3%)
CIE-LABlab(21.73, 21.14, -44.44)
CIE-LCHlch(21.73, 49.21, 295.44°)
OKLaboklab(33.33% -0.0043 -0.1283)
OKLCHoklch(33.33% 0.128 268.1)
XYZxyz(4.7190, 3.4412, 17.8647)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D77 #77651B
analogous
#1B5B77 #1B2D77 #371B77
triadic
#1B2D77 #771B2D #2D771B
tetradic
#1B2D77 #771B5B #77651B #1B7737
square
#1B2D77 #771B5B #77651B #1B7737
split-complementary
#1B2D77 #77371B #5B771B
monochromatic
#060919 #101A45 #1B2D77 #2640A9 #3A58D2

Accessibility & contrast

On white

12.44
#1B2D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1B2D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2D77
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D77#FFFFFF#000000##FFFFFF
##1B2D771.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2d77;
/* rgb */ color: rgb(27, 45, 119);
/* oklch */ color: oklch(33.3% 0.128 268.1);
Tailwind
colors: {
  custom: {
    50: '#66659f',
    500: '#1b2d77',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d77;
$custom-light: #66659f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d77",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 119
  },
  "hsl": {
    "h": 228.261,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33334,
    "c": 0.12838,
    "h": 268.1
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#1B2D77
secondary
#AB9742
accent
#C642E6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1B2D77

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

Preview Lab → · Contrast checker → · Palette generator →

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