#1B277D#1B277D

#1B277D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.145 H 269.9°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#1B277D
RGBrgb(27, 39, 125)
HSLhsl(233, 64%, 30%)
HSVhsv(233, 78%, 49%)
CMYKcmyk(78.4%, 68.8%, 0%, 51%)
CIE-LABlab(20.69, 27.66, -49.96)
CIE-LCHlch(20.69, 57.11, 298.97°)
OKLaboklab(32.74% -0.0004 -0.1445)
OKLCHoklch(32.74% 0.145 269.9)
XYZxyz(4.8779, 3.1642, 19.7517)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B277D #7D711B
analogous
#1B587D #1B277D #401B7D
triadic
#1B277D #7D1B27 #277D1B
tetradic
#1B277D #7D1B58 #7D711B #1B7D40
square
#1B277D #7D1B58 #7D711B #1B7D40
split-complementary
#1B277D #7D401B #587D1B
monochromatic
#050819 #10174B #1B277D #2637AF #3D50D5

Accessibility & contrast

On white

12.86
#1B277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B277D
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B277D#FFFFFF#000000##FFFFFF
##1B277D1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b277d;
/* rgb */ color: rgb(27, 39, 125);
/* oklch */ color: oklch(32.7% 0.145 269.9);
Tailwind
colors: {
  custom: {
    50: '#6961a4',
    500: '#1b277d',
    950: '#000000',
  },
}
SCSS
$custom: #1b277d;
$custom-light: #6961a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b277d",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 232.653,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32739,
    "c": 0.14454,
    "h": 269.9
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#1B277D
secondary
#B1A343
accent
#D340E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B277D

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

Preview Lab → · Contrast checker → · Palette generator →

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