#1B277A#1B277A

#1B277A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.140 H 269.9°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#1B277A
RGBrgb(27, 39, 122)
HSLhsl(232, 64%, 29%)
HSVhsv(232, 78%, 48%)
CMYKcmyk(77.9%, 68%, 0%, 52.2%)
CIE-LABlab(20.40, 26.50, -48.53)
CIE-LCHlch(20.40, 55.30, 298.64°)
OKLaboklab(32.44% -0.0001 -0.1404)
OKLCHoklch(32.44% 0.14 269.9)
XYZxyz(4.6892, 3.0887, 18.7576)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B277A #7A6E1B
analogous
#1B577A #1B277A #3F1B7A
triadic
#1B277A #7A1B27 #277A1B
tetradic
#1B277A #7A1B57 #7A6E1B #1B7A3F
square
#1B277A #7A1B57 #7A6E1B #1B7A3F
split-complementary
#1B277A #7A3F1B #577A1B
monochromatic
#060819 #101748 #1B277A #2637AC #3C4FD4

Accessibility & contrast

On white

12.98
#1B277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B277A
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B277A#FFFFFF#000000##FFFFFF
##1B277A1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b277a;
/* rgb */ color: rgb(27, 39, 122);
/* oklch */ color: oklch(32.4% 0.140 269.9);
Tailwind
colors: {
  custom: {
    50: '#6861a1',
    500: '#1b277a',
    950: '#000000',
  },
}
SCSS
$custom: #1b277a;
$custom-light: #6861a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b277a",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 232.421,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32435,
    "c": 0.14038,
    "h": 269.9
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#1B277A
secondary
#AEA143
accent
#D241E7
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B277A

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

Preview Lab → · Contrast checker → · Palette generator →

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