#1D117D#1D117D

#1D117D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.6% C 0.166 H 274.2°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#1D117D
RGBrgb(29, 17, 125)
HSLhsl(247, 76%, 28%)
HSVhsv(247, 86%, 49%)
CMYKcmyk(76.8%, 86.4%, 0%, 51%)
CIE-LABlab(16.22, 40.77, -57.34)
CIE-LCHlch(16.22, 70.36, 305.41°)
OKLaboklab(29.6% 0.0123 -0.1658)
OKLCHoklch(29.6% 0.166 274.2)
XYZxyz(4.4076, 2.1423, 19.5793)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D117D #717D11
analogous
#113B7D #1D117D #53117D
triadic
#1D117D #7D1D11 #117D1D
tetradic
#1D117D #7D113B #717D11 #117D53
square
#1D117D #7D113B #717D11 #117D53
split-complementary
#1D117D #7D5311 #3B7D11
monochromatic
#06041B #110A47 #1D117D #2918B3 #3C27E2

Accessibility & contrast

On white

14.70
#1D117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1D117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D117D
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D117D#FFFFFF#000000##FFFFFF
##1D117D1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00237B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1d117d;
/* rgb */ color: rgb(29, 17, 125);
/* oklch */ color: oklch(29.6% 0.166 274.2);
Tailwind
colors: {
  custom: {
    50: '#6c53a4',
    500: '#1d117d',
    950: '#000000',
  },
}
SCSS
$custom: #1d117d;
$custom-light: #6c53a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d117d",
  "rgb": {
    "r": 29,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 246.667,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29597,
    "c": 0.16624,
    "h": 274.2
  },
  "luminance": 0.02143
}

Semantic roles & 50–950 ramp

primary
#1D117D
secondary
#A5B337
accent
#F335DE
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D117D

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

Preview Lab → · Contrast checker → · Palette generator →

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