#1D187B#1D187B

#1D187B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.158 H 273.7°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#1D187B
RGBrgb(29, 24, 123)
HSLhsl(243, 67%, 29%)
HSVhsv(243, 80%, 48%)
CMYKcmyk(76.4%, 80.5%, 0%, 51.8%)
CIE-LABlab(17.20, 36.53, -54.44)
CIE-LCHlch(17.20, 65.56, 303.87°)
OKLaboklab(30.21% 0.0102 -0.1575)
OKLCHoklch(30.21% 0.158 273.7)
XYZxyz(4.4073, 2.3441, 18.9552)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D187B #767B18
analogous
#18457B #1D187B #4F187B
triadic
#1D187B #7B1D18 #187B1D
tetradic
#1D187B #7B1845 #767B18 #187B4F
square
#1D187B #7B1845 #767B18 #187B4F
split-complementary
#1D187B #7B4F18 #457B18
monochromatic
#06051A #110E48 #1D187B #2922AE #3E36D8

Accessibility & contrast

On white

14.30
#1D187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D187B
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D187B#FFFFFF#000000##FFFFFF
##1D187B1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d187b;
/* rgb */ color: rgb(29, 24, 123);
/* oklch */ color: oklch(30.2% 0.158 273.7);
Tailwind
colors: {
  custom: {
    50: '#6a57a2',
    500: '#1d187b',
    950: '#000000',
  },
}
SCSS
$custom: #1d187b;
$custom-light: #6a57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d187b",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 243.03,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30207,
    "c": 0.15781,
    "h": 273.7
  },
  "luminance": 0.02345
}

Semantic roles & 50–950 ramp

primary
#1D187B
secondary
#AAB03F
accent
#EA3EE2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D187B

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

Preview Lab → · Contrast checker → · Palette generator →

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