#1D186E#1D186E

#1D186E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.141 H 275.4°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#1D186E
RGBrgb(29, 24, 110)
HSLhsl(243, 64%, 26%)
HSVhsv(243, 78%, 43%)
CMYKcmyk(73.6%, 78.2%, 0%, 56.9%)
CIE-LABlab(15.70, 32.02, -48.53)
CIE-LCHlch(15.70, 58.15, 303.42°)
OKLaboklab(28.7% 0.0132 -0.1403)
OKLCHoklch(28.7% 0.141 275.4)
XYZxyz(3.6469, 2.0399, 14.9504)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D186E #696E18
analogous
#183E6E #1D186E #48186E
triadic
#1D186E #6E1D18 #186E1D
tetradic
#1D186E #6E183E #696E18 #186E48
square
#1D186E #6E183E #696E18 #186E48
split-complementary
#1D186E #6E4818 #3E6E18
monochromatic
#070519 #100D3C #1D186E #2A23A0 #382FD2

Accessibility & contrast

On white

14.91
#1D186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1D186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D186E
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D186E#FFFFFF#000000##FFFFFF
##1D186E1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d186e;
/* rgb */ color: rgb(29, 24, 110);
/* oklch */ color: oklch(28.7% 0.141 275.4);
Tailwind
colors: {
  custom: {
    50: '#675699',
    500: '#1d186e',
    950: '#000000',
  },
}
SCSS
$custom: #1d186e;
$custom-light: #675699;
$custom-dark: #000000;
JSON
{
  "hex": "#1d186e",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 243.488,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28703,
    "c": 0.14093,
    "h": 275.4
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D186E

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

Preview Lab → · Contrast checker → · Palette generator →

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