#1D2897#1D2897

#1D2897 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.177 H 269.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#1D2897
RGBrgb(29, 40, 151)
HSLhsl(235, 68%, 35%)
HSVhsv(235, 81%, 59%)
CMYKcmyk(80.8%, 73.5%, 0%, 40.8%)
CIE-LABlab(23.71, 36.90, -61.22)
CIE-LCHlch(23.71, 71.48, 301.08°)
OKLaboklab(35.76% -0.0016 -0.1773)
OKLCHoklch(35.76% 0.177 269.5)
XYZxyz(6.8495, 4.0124, 29.6856)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2897 #978C1D
analogous
#1D6597 #1D2897 #4F1D97
triadic
#1D2897 #971D28 #28971D
tetradic
#1D2897 #971D65 #978C1D #1D974F
square
#1D2897 #971D65 #978C1D #1D974F
split-complementary
#1D2897 #974F1D #65971D
monochromatic
#090D30 #131A64 #1D2897 #2736CA #515EDE

Accessibility & contrast

On white

11.65
#1D2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1D2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2897
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2897#FFFFFF#000000##FFFFFF
##1D28971.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1d2897;
/* rgb */ color: rgb(29, 40, 151);
/* oklch */ color: oklch(35.8% 0.177 269.5);
Tailwind
colors: {
  custom: {
    50: '#7063b7',
    500: '#1d2897',
    950: '#000000',
  },
}
SCSS
$custom: #1d2897;
$custom-light: #7063b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2897",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 234.59,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3576,
    "c": 0.17734,
    "h": 269.5
  },
  "luminance": 0.04013
}

Semantic roles & 50–950 ramp

primary
#1D2897
secondary
#C0B64F
accent
#DB3DEB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1D2897

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

Preview Lab → · Contrast checker → · Palette generator →

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