#1D277E#1D277E

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

Color values

HEX#1D277E
RGBrgb(29, 39, 126)
HSLhsl(234, 63%, 30%)
HSVhsv(234, 77%, 49%)
CMYKcmyk(77%, 69%, 0%, 50.6%)
CIE-LABlab(20.90, 28.27, -50.25)
CIE-LCHlch(20.90, 57.65, 299.36°)
OKLaboklab(32.95% 0.0017 -0.1453)
OKLCHoklch(32.95% 0.145 270.7)
XYZxyz(4.9968, 3.2181, 20.0924)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D277E #7E741D
analogous
#1D587E #1D277E #431D7E
triadic
#1D277E #7E1D27 #277E1D
tetradic
#1D277E #7E1D58 #7E741D #1D7E43
square
#1D277E #7E1D58 #7E741D #1D7E43
split-complementary
#1D277E #7E431D #587E1D
monochromatic
#06081B #12184C #1D277E #2836B0 #4251D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1D277E#FFFFFF#000000##FFFFFF
##1D277E1.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)
#003781
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d277e;
/* rgb */ color: rgb(29, 39, 126);
/* oklch */ color: oklch(33.0% 0.145 270.7);
Tailwind
colors: {
  custom: {
    50: '#6a61a4',
    500: '#1d277e',
    950: '#000000',
  },
}
SCSS
$custom: #1d277e;
$custom-light: #6a61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d277e",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 233.814,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3295,
    "c": 0.14536,
    "h": 270.7
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D277E

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

Preview Lab → · Contrast checker → · Palette generator →

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