#1D186F#1D186F

#1D186F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.142 H 275.3°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#1D186F
RGBrgb(29, 24, 111)
HSLhsl(243, 64%, 26%)
HSVhsv(243, 78%, 44%)
CMYKcmyk(73.9%, 78.4%, 0%, 56.5%)
CIE-LABlab(15.81, 32.38, -49.00)
CIE-LCHlch(15.81, 58.73, 303.46°)
OKLaboklab(28.82% 0.013 -0.1417)
OKLCHoklch(28.82% 0.142 275.3)
XYZxyz(3.7016, 2.0618, 15.2387)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D186F #6A6F18
analogous
#183F6F #1D186F #49186F
triadic
#1D186F #6F1D18 #186F1D
tetradic
#1D186F #6F183F #6A6F18 #186F49
square
#1D186F #6F183F #6A6F18 #186F49
split-complementary
#1D186F #6F4918 #3F6F18
monochromatic
#070519 #100D3D #1D186F #2A23A1 #392FD2

Accessibility & contrast

On white

14.87
#1D186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D186F
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D186F#FFFFFF#000000##FFFFFF
##1D186F1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d186f;
/* rgb */ color: rgb(29, 24, 111);
/* oklch */ color: oklch(28.8% 0.142 275.3);
Tailwind
colors: {
  custom: {
    50: '#675699',
    500: '#1d186f',
    950: '#000000',
  },
}
SCSS
$custom: #1d186f;
$custom-light: #675699;
$custom-dark: #000000;
JSON
{
  "hex": "#1d186f",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 243.448,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28817,
    "c": 0.14227,
    "h": 275.3
  },
  "luminance": 0.02062
}

Semantic roles & 50–950 ramp

primary
#1D186F
secondary
#9FA53E
accent
#E740DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D186F

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

Preview Lab → · Contrast checker → · Palette generator →

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