#1D188E#1D188E

#1D188E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.181 H 271.8°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#1D188E
RGBrgb(29, 24, 142)
HSLhsl(243, 71%, 33%)
HSVhsv(243, 83%, 56%)
CMYKcmyk(79.6%, 83.1%, 0%, 44.3%)
CIE-LABlab(19.50, 42.85, -62.61)
CIE-LCHlch(19.50, 75.87, 304.38°)
OKLaboklab(32.48% 0.0056 -0.1812)
OKLCHoklch(32.48% 0.181 271.8)
XYZxyz(5.7142, 2.8668, 25.8381)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D188E #898E18
analogous
#184E8E #1D188E #58188E
triadic
#1D188E #8E1D18 #188E1D
tetradic
#1D188E #8E184E #898E18 #188E58
square
#1D188E #8E184E #898E18 #188E58
split-complementary
#1D188E #8E5818 #4E8E18
monochromatic
#080625 #120F5A #1D188E #2821C2 #4841DF

Accessibility & contrast

On white

13.35
#1D188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1D188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D188E
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D188E#FFFFFF#000000##FFFFFF
##1D188E1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d188e;
/* rgb */ color: rgb(29, 24, 142);
/* oklch */ color: oklch(32.5% 0.181 271.8);
Tailwind
colors: {
  custom: {
    50: '#6f58b0',
    500: '#1d188e',
    950: '#000000',
  },
}
SCSS
$custom: #1d188e;
$custom-light: #6f58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d188e",
  "rgb": {
    "r": 29,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 242.542,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32484,
    "c": 0.18128,
    "h": 271.8
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#1D188E
secondary
#BAC042
accent
#EE3AE6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D188E

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

Preview Lab → · Contrast checker → · Palette generator →

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