#1D117F#1D117F

#1D117F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.169 H 274.0°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#1D117F
RGBrgb(29, 17, 127)
HSLhsl(247, 76%, 28%)
HSVhsv(247, 87%, 50%)
CMYKcmyk(77.2%, 86.6%, 0%, 50.2%)
CIE-LABlab(16.47, 41.40, -58.19)
CIE-LCHlch(16.47, 71.41, 305.43°)
OKLaboklab(29.85% 0.0117 -0.1682)
OKLCHoklch(29.85% 0.169 274)
XYZxyz(4.5366, 2.1939, 20.2589)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D117F #737F11
analogous
#113C7F #1D117F #54117F
triadic
#1D117F #7F1D11 #117F1D
tetradic
#1D117F #7F113C #737F11 #117F54
square
#1D117F #7F113C #737F11 #117F54
split-complementary
#1D117F #7F5411 #3C7F11
monochromatic
#06041B #110A49 #1D117F #2918B5 #3C28E2

Accessibility & contrast

On white

14.60
#1D117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1D117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D117F
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D117F#FFFFFF#000000##FFFFFF
##1D117F1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1d117f;
/* rgb */ color: rgb(29, 17, 127);
/* oklch */ color: oklch(29.8% 0.169 274.0);
Tailwind
colors: {
  custom: {
    50: '#6c54a5',
    500: '#1d117f',
    950: '#000000',
  },
}
SCSS
$custom: #1d117f;
$custom-light: #6c54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d117f",
  "rgb": {
    "r": 29,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 246.545,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29847,
    "c": 0.16866,
    "h": 274
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#1D117F
secondary
#A7B537
accent
#F335DE
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D117F

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

Preview Lab → · Contrast checker → · Palette generator →

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