#1D1F9D#1D1F9D

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

Color values

HEX#1D1F9D
RGBrgb(29, 31, 157)
HSLhsl(239, 69%, 36%)
HSVhsv(239, 82%, 62%)
CMYKcmyk(81.5%, 80.3%, 0%, 38.4%)
CIE-LABlab(22.57, 44.15, -66.79)
CIE-LCHlch(22.57, 80.07, 303.47°)
OKLaboklab(35.15% 0.0004 -0.1934)
OKLCHoklch(35.15% 0.193 270.1)
XYZxyz(7.0804, 3.6747, 32.2279)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F9D #9D9B1D
analogous
#1D5F9D #1D1F9D #5B1D9D
triadic
#1D1F9D #9D1D1F #1F9D1D
tetradic
#1D1F9D #9D1D5F #9D9B1D #1D9D5B
square
#1D1F9D #9D1D5F #9D9B1D #1D9D5B
split-complementary
#1D1F9D #9D5B1D #5F9D1D
monochromatic
#0A0B36 #131569 #1D1F9D #2729D1 #5557E0

Accessibility & contrast

On white

12.10
#1D1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1D1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F9D
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F9D#FFFFFF#000000##FFFFFF
##1D1F9D1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#002F9B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d1f9d;
/* rgb */ color: rgb(29, 31, 157);
/* oklch */ color: oklch(35.1% 0.193 270.1);
Tailwind
colors: {
  custom: {
    50: '#735dbb',
    500: '#1d1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f9d;
$custom-light: #735dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f9d",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 239.063,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35147,
    "c": 0.19343,
    "h": 270.1
  },
  "luminance": 0.03676
}

Semantic roles & 50–950 ramp

primary
#1D1F9D
secondary
#C3C153
accent
#E93CEC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1D1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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