#1D187C#1D187C

#1D187C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.159 H 273.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#1D187C
RGBrgb(29, 24, 124)
HSLhsl(243, 68%, 29%)
HSVhsv(243, 81%, 49%)
CMYKcmyk(76.6%, 80.6%, 0%, 51.4%)
CIE-LABlab(17.32, 36.87, -54.88)
CIE-LCHlch(17.32, 66.12, 303.90°)
OKLaboklab(30.33% 0.01 -0.1588)
OKLCHoklch(30.33% 0.159 273.6)
XYZxyz(4.4702, 2.3693, 19.2866)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D187C #777C18
analogous
#18457C #1D187C #4F187C
triadic
#1D187C #7C1D18 #187C1D
tetradic
#1D187C #7C1845 #777C18 #187C4F
square
#1D187C #7C1845 #777C18 #187C4F
split-complementary
#1D187C #7C4F18 #457C18
monochromatic
#06051A #110E49 #1D187C #2922AF #3E36D8

Accessibility & contrast

On white

14.25
#1D187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1D187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D187C
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D187C#FFFFFF#000000##FFFFFF
##1D187C1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d187c;
/* rgb */ color: rgb(29, 24, 124);
/* oklch */ color: oklch(30.3% 0.159 273.6);
Tailwind
colors: {
  custom: {
    50: '#6b57a3',
    500: '#1d187c',
    950: '#000000',
  },
}
SCSS
$custom: #1d187c;
$custom-light: #6b57a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d187c",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 243,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30325,
    "c": 0.15908,
    "h": 273.6
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#1D187C
secondary
#ABB13F
accent
#EA3DE2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D187C

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

Preview Lab → · Contrast checker → · Palette generator →

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