#1D117C#1D117C

#1D117C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.165 H 274.4°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#1D117C
RGBrgb(29, 17, 124)
HSLhsl(247, 76%, 28%)
HSVhsv(247, 86%, 49%)
CMYKcmyk(76.6%, 86.3%, 0%, 51.4%)
CIE-LABlab(16.09, 40.45, -56.91)
CIE-LCHlch(16.09, 69.82, 305.40°)
OKLaboklab(29.47% 0.0126 -0.1646)
OKLCHoklch(29.47% 0.165 274.4)
XYZxyz(4.3440, 2.1169, 19.2445)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D117C #707C11
analogous
#113A7C #1D117C #52117C
triadic
#1D117C #7C1D11 #117C1D
tetradic
#1D117C #7C113A #707C11 #117C52
square
#1D117C #7C113A #707C11 #117C52
split-complementary
#1D117C #7C5211 #3A7C11
monochromatic
#06041B #100A46 #1D117C #2A18B2 #3B26E1

Accessibility & contrast

On white

14.75
#1D117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1D117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D117C
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D117C#FFFFFF#000000##FFFFFF
##1D117C1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00237A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1d117c;
/* rgb */ color: rgb(29, 17, 124);
/* oklch */ color: oklch(29.5% 0.165 274.4);
Tailwind
colors: {
  custom: {
    50: '#6b53a3',
    500: '#1d117c',
    950: '#000000',
  },
}
SCSS
$custom: #1d117c;
$custom-light: #6b53a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d117c",
  "rgb": {
    "r": 29,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 246.729,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29472,
    "c": 0.16504,
    "h": 274.4
  },
  "luminance": 0.02117
}

Semantic roles & 50–950 ramp

primary
#1D117C
secondary
#A4B237
accent
#F235DD
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D117C

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

Preview Lab → · Contrast checker → · Palette generator →

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