#1B277E#1B277E

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

Color values

HEX#1B277E
RGBrgb(27, 39, 126)
HSLhsl(233, 65%, 30%)
HSVhsv(233, 79%, 49%)
CMYKcmyk(78.6%, 69%, 0%, 50.6%)
CIE-LABlab(20.79, 28.05, -50.43)
CIE-LCHlch(20.79, 57.71, 299.08°)
OKLaboklab(32.84% -0.0004 -0.1459)
OKLCHoklch(32.84% 0.146 269.8)
XYZxyz(4.9421, 3.1899, 20.0899)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B277E #7E721B
analogous
#1B597E #1B277E #401B7E
triadic
#1B277E #7E1B27 #277E1B
tetradic
#1B277E #7E1B59 #7E721B #1B7E40
square
#1B277E #7E1B59 #7E721B #1B7E40
split-complementary
#1B277E #7E401B #597E1B
monochromatic
#050819 #10174C #1B277E #2637B0 #3E50D6

Accessibility & contrast

On white

12.82
#1B277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B277E
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B277E#FFFFFF#000000##FFFFFF
##1B277E1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b277e;
/* rgb */ color: rgb(27, 39, 126);
/* oklch */ color: oklch(32.8% 0.146 269.8);
Tailwind
colors: {
  custom: {
    50: '#6961a4',
    500: '#1b277e',
    950: '#000000',
  },
}
SCSS
$custom: #1b277e;
$custom-light: #6961a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b277e",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 232.727,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.32842,
    "c": 0.14592,
    "h": 269.8
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#1B277E
secondary
#B2A443
accent
#D340E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B277E

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

Preview Lab → · Contrast checker → · Palette generator →

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