#1D1D9F#1D1D9F

#1D1D9F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.197 H 270.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#1D1D9F
RGBrgb(29, 29, 159)
HSLhsl(240, 69%, 37%)
HSVhsv(240, 82%, 62%)
CMYKcmyk(81.8%, 81.8%, 0%, 37.6%)
CIE-LABlab(22.45, 45.84, -68.21)
CIE-LCHlch(22.45, 82.18, 303.90°)
OKLaboklab(35.14% 0.0005 -0.1975)
OKLCHoklch(35.14% 0.197 270.1)
XYZxyz(7.2019, 3.6423, 33.1176)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1D9F #9F9F1D
analogous
#1D5E9F #1D1D9F #5E1D9F
triadic
#1D1D9F #9F1D1D #1D9F1D
tetradic
#1D1D9F #9F1D5E #9F9F1D #1D9F5E
square
#1D1D9F #9F1D5E #9F9F1D #1D9F5E
split-complementary
#1D1D9F #9F5E1D #5E9F1D
monochromatic
#0A0A37 #14146B #1D1D9F #2626D3 #5656E0

Accessibility & contrast

On white

12.15
#1D1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1D1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1D9F
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1D9F#FFFFFF#000000##FFFFFF
##1D1D9F1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#002F9D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d1d9f;
/* rgb */ color: rgb(29, 29, 159);
/* oklch */ color: oklch(35.1% 0.197 270.1);
Tailwind
colors: {
  custom: {
    50: '#735cbd',
    500: '#1d1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #1d1d9f;
$custom-light: #735cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1d9f",
  "rgb": {
    "r": 29,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 240,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35138,
    "c": 0.19748,
    "h": 270.1
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#1D1D9F
secondary
#C4C454
accent
#EC3CEC
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1D1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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