#1D107E#1D107E

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

Color values

HEX#1D107E
RGBrgb(29, 16, 126)
HSLhsl(247, 77%, 28%)
HSVhsv(247, 87%, 49%)
CMYKcmyk(77%, 87.3%, 0%, 50.6%)
CIE-LABlab(16.19, 41.53, -58.02)
CIE-LCHlch(16.19, 71.35, 305.60°)
OKLaboklab(29.62% 0.0123 -0.1677)
OKLCHoklch(29.62% 0.168 274.2)
XYZxyz(4.4566, 2.1377, 19.9124)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D107E #717E10
analogous
#103A7E #1D107E #54107E
triadic
#1D107E #7E1D10 #107E1D
tetradic
#1D107E #7E103A #717E10 #107E54
square
#1D107E #7E103A #717E10 #107E54
split-complementary
#1D107E #7E5410 #3A7E10
monochromatic
#06031B #110948 #1D107E #2917B4 #3C25E3

Accessibility & contrast

On white

14.71
#1D107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D107E
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D107E#FFFFFF#000000##FFFFFF
##1D107E1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d107e;
/* rgb */ color: rgb(29, 16, 126);
/* oklch */ color: oklch(29.6% 0.168 274.2);
Tailwind
colors: {
  custom: {
    50: '#6c53a5',
    500: '#1d107e',
    950: '#000000',
  },
}
SCSS
$custom: #1d107e;
$custom-light: #6c53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d107e",
  "rgb": {
    "r": 29,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 247.091,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29618,
    "c": 0.16818,
    "h": 274.2
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#1D107E
secondary
#A5B436
accent
#F434DD
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D107E

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

Preview Lab → · Contrast checker → · Palette generator →

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