#1D117E#1D117E

#1D117E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.167 H 274.1°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#1D117E
RGBrgb(29, 17, 126)
HSLhsl(247, 76%, 28%)
HSVhsv(247, 87%, 49%)
CMYKcmyk(77%, 86.5%, 0%, 50.6%)
CIE-LABlab(16.35, 41.08, -57.76)
CIE-LCHlch(16.35, 70.88, 305.42°)
OKLaboklab(29.72% 0.012 -0.167)
OKLCHoklch(29.72% 0.167 274.1)
XYZxyz(4.4718, 2.1680, 19.9174)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D117E #727E11
analogous
#113B7E #1D117E #54117E
triadic
#1D117E #7E1D11 #117E1D
tetradic
#1D117E #7E113B #727E11 #117E54
square
#1D117E #7E113B #727E11 #117E54
split-complementary
#1D117E #7E5411 #3B7E11
monochromatic
#06041B #110A48 #1D117E #2918B4 #3C27E2

Accessibility & contrast

On white

14.65
#1D117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D117E
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D117E#FFFFFF#000000##FFFFFF
##1D117E1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1d117e;
/* rgb */ color: rgb(29, 17, 126);
/* oklch */ color: oklch(29.7% 0.167 274.1);
Tailwind
colors: {
  custom: {
    50: '#6c54a5',
    500: '#1d117e',
    950: '#000000',
  },
}
SCSS
$custom: #1d117e;
$custom-light: #6c54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d117e",
  "rgb": {
    "r": 29,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 246.606,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29722,
    "c": 0.16745,
    "h": 274.1
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D117E

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

Preview Lab → · Contrast checker → · Palette generator →

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