#1B277F#1B277F

#1B277F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.147 H 269.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#1B277F
RGBrgb(27, 39, 127)
HSLhsl(233, 65%, 30%)
HSVhsv(233, 79%, 50%)
CMYKcmyk(78.7%, 69.3%, 0%, 50.2%)
CIE-LABlab(20.89, 28.43, -50.90)
CIE-LCHlch(20.89, 58.30, 299.19°)
OKLaboklab(32.95% -0.0005 -0.1473)
OKLCHoklch(32.95% 0.147 269.8)
XYZxyz(5.0070, 3.2158, 20.4314)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B277F #7F731B
analogous
#1B597F #1B277F #411B7F
triadic
#1B277F #7F1B27 #277F1B
tetradic
#1B277F #7F1B59 #7F731B #1B7F41
square
#1B277F #7F1B59 #7F731B #1B7F41
split-complementary
#1B277F #7F411B #597F1B
monochromatic
#06081A #10184D #1B277F #2636B1 #3E51D6

Accessibility & contrast

On white

12.78
#1B277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1B277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B277F
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B277F#FFFFFF#000000##FFFFFF
##1B277F1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b277f;
/* rgb */ color: rgb(27, 39, 127);
/* oklch */ color: oklch(32.9% 0.147 269.8);
Tailwind
colors: {
  custom: {
    50: '#6961a5',
    500: '#1b277f',
    950: '#000000',
  },
}
SCSS
$custom: #1b277f;
$custom-light: #6961a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b277f",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 232.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32945,
    "c": 0.1473,
    "h": 269.8
  },
  "luminance": 0.03216
}

Semantic roles & 50–950 ramp

primary
#1B277F
secondary
#B3A543
accent
#D440E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B277F

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

Preview Lab → · Contrast checker → · Palette generator →

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