#1D1D7B#1D1D7B

#1D1D7B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.153 H 272.9°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#1D1D7B
RGBrgb(29, 29, 123)
HSLhsl(240, 62%, 30%)
HSVhsv(240, 76%, 48%)
CMYKcmyk(76.4%, 76.4%, 0%, 51.8%)
CIE-LABlab(18.23, 33.61, -52.73)
CIE-LCHlch(18.23, 62.53, 302.51°)
OKLaboklab(30.94% 0.0079 -0.1526)
OKLCHoklch(30.94% 0.153 272.9)
XYZxyz(4.5200, 2.5695, 18.9928)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1D7B #7B7B1D
analogous
#1D4C7B #1D1D7B #4C1D7B
triadic
#1D1D7B #7B1D1D #1D7B1D
tetradic
#1D1D7B #7B1D4C #7B7B1D #1D7B4C
square
#1D1D7B #7B1D4C #7B7B1D #1D7B4C
split-complementary
#1D1D7B #7B4C1D #4C7B1D
monochromatic
#060619 #111149 #1D1D7B #2929AD #4040D2

Accessibility & contrast

On white

13.87
#1D1D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1D1D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1D7B
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1D7B#FFFFFF#000000##FFFFFF
##1D1D7B1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d1d7b;
/* rgb */ color: rgb(29, 29, 123);
/* oklch */ color: oklch(30.9% 0.153 272.9);
Tailwind
colors: {
  custom: {
    50: '#6a5aa2',
    500: '#1d1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #1d1d7b;
$custom-light: #6a5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1d7b",
  "rgb": {
    "r": 29,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 240,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30936,
    "c": 0.15278,
    "h": 272.9
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#1D1D7B
secondary
#AFAF45
accent
#E543E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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