#1D1796#1D1796

#1D1796 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.192 H 271.2°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#1D1796
RGBrgb(29, 23, 150)
HSLhsl(243, 73%, 34%)
HSVhsv(243, 85%, 59%)
CMYKcmyk(80.7%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.34, 45.87, -66.18)
CIE-LCHlch(20.34, 80.52, 304.73°)
OKLaboklab(33.35% 0.0039 -0.1915)
OKLCHoklch(33.35% 0.192 271.2)
XYZxyz(6.3163, 3.0753, 29.1089)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1796 #909617
analogous
#175196 #1D1796 #5D1796
triadic
#1D1796 #961D17 #17961D
tetradic
#1D1796 #961751 #909617 #17965D
square
#1D1796 #961751 #909617 #17965D
split-complementary
#1D1796 #965D17 #519617
monochromatic
#08072C #130F61 #1D1796 #271FCB #4C45E2

Accessibility & contrast

On white

13.00
#1D1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1D1796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1796
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1796#FFFFFF#000000##FFFFFF
##1D17961.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003799
Deuteranopia (green-blind)
#002B94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d1796;
/* rgb */ color: rgb(29, 23, 150);
/* oklch */ color: oklch(33.4% 0.192 271.2);
Tailwind
colors: {
  custom: {
    50: '#7259b6',
    500: '#1d1796',
    950: '#000000',
  },
}
SCSS
$custom: #1d1796;
$custom-light: #7259b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1796",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 242.835,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33354,
    "c": 0.19155,
    "h": 271.2
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

primary
#1D1796
secondary
#BDC345
accent
#F038E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D1796

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

Preview Lab → · Contrast checker → · Palette generator →

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