#1D1C7D#1D1C7D

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

Color values

HEX#1D1C7D
RGBrgb(29, 28, 125)
HSLhsl(241, 63%, 30%)
HSVhsv(241, 78%, 49%)
CMYKcmyk(76.8%, 77.6%, 0%, 51%)
CIE-LABlab(18.24, 34.92, -53.99)
CIE-LCHlch(18.24, 64.30, 302.89°)
OKLaboklab(31.01% 0.008 -0.1562)
OKLCHoklch(31.01% 0.156 272.9)
XYZxyz(4.6224, 2.5719, 19.6509)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1C7D #7C7D1C
analogous
#1C4B7D #1D1C7D #4E1C7D
triadic
#1D1C7D #7D1D1C #1C7D1D
tetradic
#1D1C7D #7D1C4B #7C7D1C #1C7D4E
square
#1D1C7D #7D1C4B #7C7D1C #1C7D4E
split-complementary
#1D1C7D #7D4E1C #4B7D1C
monochromatic
#060619 #11114B #1D1C7D #2927AF #413FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1D1C7D#FFFFFF#000000##FFFFFF
##1D1C7D1.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)
#003180
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d1c7d;
/* rgb */ color: rgb(29, 28, 125);
/* oklch */ color: oklch(31.0% 0.156 272.9);
Tailwind
colors: {
  custom: {
    50: '#6a5aa4',
    500: '#1d1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #1d1c7d;
$custom-light: #6a5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1c7d",
  "rgb": {
    "r": 29,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 240.619,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.3101,
    "c": 0.15643,
    "h": 272.9
  },
  "luminance": 0.02572
}

Semantic roles & 50–950 ramp

primary
#1D1C7D
secondary
#B0B144
accent
#E641E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1D1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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