#1D187F#1D187F

#1D187F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.163 H 273.3°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#1D187F
RGBrgb(29, 24, 127)
HSLhsl(243, 68%, 30%)
HSVhsv(243, 81%, 50%)
CMYKcmyk(77.2%, 81.1%, 0%, 50.2%)
CIE-LABlab(17.67, 37.89, -56.20)
CIE-LCHlch(17.67, 67.78, 303.99°)
OKLaboklab(30.68% 0.0093 -0.1626)
OKLCHoklch(30.68% 0.163 273.3)
XYZxyz(4.6628, 2.4463, 20.3010)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D187F #7A7F18
analogous
#18467F #1D187F #51187F
triadic
#1D187F #7F1D18 #187F1D
tetradic
#1D187F #7F1846 #7A7F18 #187F51
square
#1D187F #7F1846 #7A7F18 #187F51
split-complementary
#1D187F #7F5118 #467F18
monochromatic
#06051A #110E4C #1D187F #2922B2 #4038D9

Accessibility & contrast

On white

14.10
#1D187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1D187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D187F
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D187F#FFFFFF#000000##FFFFFF
##1D187F1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d187f;
/* rgb */ color: rgb(29, 24, 127);
/* oklch */ color: oklch(30.7% 0.163 273.3);
Tailwind
colors: {
  custom: {
    50: '#6b57a5',
    500: '#1d187f',
    950: '#000000',
  },
}
SCSS
$custom: #1d187f;
$custom-light: #6b57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d187f",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 242.913,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30679,
    "c": 0.16286,
    "h": 273.3
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#1D187F
secondary
#AEB33F
accent
#EB3DE3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D187F

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

Preview Lab → · Contrast checker → · Palette generator →

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