#1D2797#1D2797

#1D2797 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.178 H 269.6°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#1D2797
RGBrgb(29, 39, 151)
HSLhsl(235, 68%, 35%)
HSVhsv(235, 81%, 59%)
CMYKcmyk(80.8%, 74.2%, 0%, 40.8%)
CIE-LABlab(23.49, 37.51, -61.58)
CIE-LCHlch(23.49, 72.11, 301.35°)
OKLaboklab(35.6% -0.0012 -0.1784)
OKLCHoklch(35.6% 0.178 269.6)
XYZxyz(6.8162, 3.9458, 29.6745)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2797 #978D1D
analogous
#1D6497 #1D2797 #501D97
triadic
#1D2797 #971D27 #27971D
tetradic
#1D2797 #971D64 #978D1D #1D9750
square
#1D2797 #971D64 #978D1D #1D9750
split-complementary
#1D2797 #97501D #64971D
monochromatic
#090C30 #131A64 #1D2797 #2734CA #515CDE

Accessibility & contrast

On white

11.74
#1D2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1D2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2797
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2797#FFFFFF#000000##FFFFFF
##1D27971.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d2797;
/* rgb */ color: rgb(29, 39, 151);
/* oklch */ color: oklch(35.6% 0.178 269.6);
Tailwind
colors: {
  custom: {
    50: '#7062b7',
    500: '#1d2797',
    950: '#000000',
  },
}
SCSS
$custom: #1d2797;
$custom-light: #7062b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2797",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 235.082,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35602,
    "c": 0.17839,
    "h": 269.6
  },
  "luminance": 0.03947
}

Semantic roles & 50–950 ramp

primary
#1D2797
secondary
#C0B74F
accent
#DC3DEB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1D2797

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

Preview Lab → · Contrast checker → · Palette generator →

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