#1D277D#1D277D

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

Color values

HEX#1D277D
RGBrgb(29, 39, 125)
HSLhsl(234, 62%, 30%)
HSVhsv(234, 77%, 49%)
CMYKcmyk(76.8%, 68.8%, 0%, 51%)
CIE-LABlab(20.80, 27.89, -49.78)
CIE-LCHlch(20.80, 57.06, 299.26°)
OKLaboklab(32.85% 0.0018 -0.144)
OKLCHoklch(32.85% 0.144 270.7)
XYZxyz(4.9326, 3.1924, 19.7543)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D277D #7D731D
analogous
#1D577D #1D277D #431D7D
triadic
#1D277D #7D1D27 #277D1D
tetradic
#1D277D #7D1D57 #7D731D #1D7D43
square
#1D277D #7D1D57 #7D731D #1D7D43
split-complementary
#1D277D #7D431D #577D1D
monochromatic
#06081A #11184B #1D277D #2936AF #4151D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1D277D#FFFFFF#000000##FFFFFF
##1D277D1.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)
#003780
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d277d;
/* rgb */ color: rgb(29, 39, 125);
/* oklch */ color: oklch(32.8% 0.144 270.7);
Tailwind
colors: {
  custom: {
    50: '#6961a4',
    500: '#1d277d',
    950: '#000000',
  },
}
SCSS
$custom: #1d277d;
$custom-light: #6961a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d277d",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 233.75,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32848,
    "c": 0.14397,
    "h": 270.7
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#1D277D
secondary
#B1A545
accent
#D442E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D277D

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

Preview Lab → · Contrast checker → · Palette generator →

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