#1D2671#1D2671

#1D2671 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.128 H 271.5°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#1D2671
RGBrgb(29, 38, 113)
HSLhsl(234, 59%, 28%)
HSVhsv(234, 74%, 44%)
CMYKcmyk(74.3%, 66.4%, 0%, 55.7%)
CIE-LABlab(19.39, 23.94, -44.41)
CIE-LCHlch(19.39, 50.45, 298.33°)
OKLaboklab(31.46% 0.0033 -0.1283)
OKLCHoklch(31.46% 0.128 271.5)
XYZxyz(4.1794, 2.8393, 15.9474)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2671 #71681D
analogous
#1D5071 #1D2671 #3E1D71
triadic
#1D2671 #711D26 #26711D
tetradic
#1D2671 #711D50 #71681D #1D713E
square
#1D2671 #711D50 #71681D #1D713E
split-complementary
#1D2671 #713E1D #50711D
monochromatic
#060818 #111640 #1D2671 #2936A2 #3C4BCD

Accessibility & contrast

On white

13.39
#1D2671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1D2671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2671
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2671#FFFFFF#000000##FFFFFF
##1D26711.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d2671;
/* rgb */ color: rgb(29, 38, 113);
/* oklch */ color: oklch(31.5% 0.128 271.5);
Tailwind
colors: {
  custom: {
    50: '#66609b',
    500: '#1d2671',
    950: '#000000',
  },
}
SCSS
$custom: #1d2671;
$custom-light: #66609b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2671",
  "rgb": {
    "r": 29,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 233.571,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31463,
    "c": 0.1283,
    "h": 271.5
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#1D2671
secondary
#A59B44
accent
#D245E2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1D2671

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

Preview Lab → · Contrast checker → · Palette generator →

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