#1D187E#1D187E

#1D187E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.162 H 273.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#1D187E
RGBrgb(29, 24, 126)
HSLhsl(243, 68%, 29%)
HSVhsv(243, 81%, 49%)
CMYKcmyk(77%, 81%, 0%, 50.6%)
CIE-LABlab(17.55, 37.55, -55.76)
CIE-LCHlch(17.55, 67.23, 303.96°)
OKLaboklab(30.56% 0.0095 -0.1613)
OKLCHoklch(30.56% 0.162 273.4)
XYZxyz(4.5980, 2.4204, 19.9595)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D187E #797E18
analogous
#18467E #1D187E #50187E
triadic
#1D187E #7E1D18 #187E1D
tetradic
#1D187E #7E1846 #797E18 #187E50
square
#1D187E #7E1846 #797E18 #187E50
split-complementary
#1D187E #7E5018 #467E18
monochromatic
#06051A #110E4B #1D187E #2922B1 #3F37D9

Accessibility & contrast

On white

14.15
#1D187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1D187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D187E
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D187E#FFFFFF#000000##FFFFFF
##1D187E1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d187e;
/* rgb */ color: rgb(29, 24, 126);
/* oklch */ color: oklch(30.6% 0.162 273.4);
Tailwind
colors: {
  custom: {
    50: '#6b57a5',
    500: '#1d187e',
    950: '#000000',
  },
}
SCSS
$custom: #1d187e;
$custom-light: #6b57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d187e",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 242.941,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30561,
    "c": 0.16161,
    "h": 273.4
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#1D187E
secondary
#ADB23F
accent
#EB3DE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D187E

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

Preview Lab → · Contrast checker → · Palette generator →

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