#1D188B#1D188B

#1D188B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.178 H 272.0°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#1D188B
RGBrgb(29, 24, 139)
HSLhsl(243, 71%, 32%)
HSVhsv(243, 83%, 55%)
CMYKcmyk(79.1%, 82.7%, 0%, 45.5%)
CIE-LABlab(19.13, 41.87, -61.35)
CIE-LCHlch(19.13, 74.28, 304.31°)
OKLaboklab(32.12% 0.0064 -0.1776)
OKLCHoklch(32.12% 0.178 272)
XYZxyz(5.4920, 2.7780, 24.6678)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D188B #868B18
analogous
#184C8B #1D188B #57188B
triadic
#1D188B #8B1D18 #188B1D
tetradic
#1D188B #8B184C #868B18 #188B57
square
#1D188B #8B184C #868B18 #188B57
split-complementary
#1D188B #8B5718 #4C8B18
monochromatic
#070623 #120F57 #1D188B #2821BF #463FDE

Accessibility & contrast

On white

13.50
#1D188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1D188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D188B
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D188B#FFFFFF#000000##FFFFFF
##1D188B1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d188b;
/* rgb */ color: rgb(29, 24, 139);
/* oklch */ color: oklch(32.1% 0.178 272.0);
Tailwind
colors: {
  custom: {
    50: '#6f58ae',
    500: '#1d188b',
    950: '#000000',
  },
}
SCSS
$custom: #1d188b;
$custom-light: #6f58ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d188b",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 242.609,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3212,
    "c": 0.17766,
    "h": 272
  },
  "luminance": 0.02779
}

Semantic roles & 50–950 ramp

primary
#1D188B
secondary
#B9BE40
accent
#ED3AE6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #1D188B

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

Preview Lab → · Contrast checker → · Palette generator →

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