#1D1971#1D1971

#1D1971 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.144 H 274.8°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#1D1971
RGBrgb(29, 25, 113)
HSLhsl(243, 64%, 27%)
HSVhsv(243, 78%, 44%)
CMYKcmyk(74.3%, 77.9%, 0%, 55.7%)
CIE-LABlab(16.25, 32.48, -49.57)
CIE-LCHlch(16.25, 59.26, 303.23°)
OKLaboklab(29.2% 0.012 -0.1433)
OKLCHoklch(29.2% 0.144 274.8)
XYZxyz(3.8340, 2.1484, 15.8322)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1971 #6D7119
analogous
#194171 #1D1971 #491971
triadic
#1D1971 #711D19 #19711D
tetradic
#1D1971 #711941 #6D7119 #197149
square
#1D1971 #711941 #6D7119 #197149
split-complementary
#1D1971 #714919 #417119
monochromatic
#060619 #100E3F #1D1971 #2A24A3 #3A33D2

Accessibility & contrast

On white

14.69
#1D1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1D1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1971
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1971#FFFFFF#000000##FFFFFF
##1D19711.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1d1971;
/* rgb */ color: rgb(29, 25, 113);
/* oklch */ color: oklch(29.2% 0.144 274.8);
Tailwind
colors: {
  custom: {
    50: '#68579b',
    500: '#1d1971',
    950: '#000000',
  },
}
SCSS
$custom: #1d1971;
$custom-light: #68579b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1971",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 242.727,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29195,
    "c": 0.14385,
    "h": 274.8
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#1D1971
secondary
#A2A640
accent
#E741DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D1971

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

Preview Lab → · Contrast checker → · Palette generator →

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