#1D186C#1D186C

#1D186C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.138 H 275.7°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#1D186C
RGBrgb(29, 24, 108)
HSLhsl(244, 64%, 26%)
HSVhsv(244, 78%, 42%)
CMYKcmyk(73.1%, 77.8%, 0%, 57.6%)
CIE-LABlab(15.47, 31.31, -47.60)
CIE-LCHlch(15.47, 56.98, 303.34°)
OKLaboklab(28.48% 0.0137 -0.1376)
OKLCHoklch(28.48% 0.138 275.7)
XYZxyz(3.5392, 1.9969, 14.3834)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D186C #676C18
analogous
#183D6C #1D186C #47186C
triadic
#1D186C #6C1D18 #186C1D
tetradic
#1D186C #6C183D #676C18 #186C47
square
#1D186C #6C183D #676C18 #186C47
split-complementary
#1D186C #6C4718 #3D6C18
monochromatic
#070619 #100D3A #1D186C #2A239E #382ED0

Accessibility & contrast

On white

15.01
#1D186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1D186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D186C
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D186C#FFFFFF#000000##FFFFFF
##1D186C1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d186c;
/* rgb */ color: rgb(29, 24, 108);
/* oklch */ color: oklch(28.5% 0.138 275.7);
Tailwind
colors: {
  custom: {
    50: '#665697',
    500: '#1d186c',
    950: '#000000',
  },
}
SCSS
$custom: #1d186c;
$custom-light: #665697;
$custom-dark: #000000;
JSON
{
  "hex": "#1d186c",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 243.571,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28477,
    "c": 0.13827,
    "h": 275.7
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#1D186C
secondary
#9CA23E
accent
#E741DD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D186C

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

Preview Lab → · Contrast checker → · Palette generator →

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