#1D277F#1D277F

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

Color values

HEX#1D277F
RGBrgb(29, 39, 127)
HSLhsl(234, 63%, 31%)
HSVhsv(234, 77%, 50%)
CMYKcmyk(77.2%, 69.3%, 0%, 50.2%)
CIE-LABlab(21.00, 28.65, -50.72)
CIE-LCHlch(21.00, 58.25, 299.46°)
OKLaboklab(33.05% 0.0016 -0.1467)
OKLCHoklch(33.05% 0.147 270.6)
XYZxyz(5.0617, 3.2440, 20.4340)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D277F #7F751D
analogous
#1D587F #1D277F #441D7F
triadic
#1D277F #7F1D27 #277F1D
tetradic
#1D277F #7F1D58 #7F751D #1D7F44
square
#1D277F #7F1D58 #7F751D #1D7F44
split-complementary
#1D277F #7F441D #587F1D
monochromatic
#06081B #12184D #1D277F #2836B1 #4251D4

Accessibility & contrast

On white

12.73
#1D277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1D277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D277F
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D277F#FFFFFF#000000##FFFFFF
##1D277F1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d277f;
/* rgb */ color: rgb(29, 39, 127);
/* oklch */ color: oklch(33.1% 0.147 270.6);
Tailwind
colors: {
  custom: {
    50: '#6a61a5',
    500: '#1d277f',
    950: '#000000',
  },
}
SCSS
$custom: #1d277f;
$custom-light: #6a61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d277f",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 233.878,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33052,
    "c": 0.14673,
    "h": 270.6
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#1D277F
secondary
#B2A745
accent
#D542E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D277F

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

Preview Lab → · Contrast checker → · Palette generator →

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