#1D198B#1D198B

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

Color values

HEX#1D198B
RGBrgb(29, 25, 139)
HSLhsl(242, 70%, 32%)
HSVhsv(242, 82%, 55%)
CMYKcmyk(79.1%, 82%, 0%, 45.5%)
CIE-LABlab(19.31, 41.36, -61.06)
CIE-LCHlch(19.31, 73.75, 304.11°)
OKLaboklab(32.24% 0.006 -0.1767)
OKLCHoklch(32.24% 0.177 272)
XYZxyz(5.5130, 2.8200, 24.6748)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D198B #878B19
analogous
#194E8B #1D198B #56198B
triadic
#1D198B #8B1D19 #198B1D
tetradic
#1D198B #8B194E #878B19 #198B56
square
#1D198B #8B194E #878B19 #198B56
split-complementary
#1D198B #8B5619 #4E8B19
monochromatic
#070623 #121057 #1D198B #2822BF #4741DD

Accessibility & contrast

On white

13.43
#1D198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D198B
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D198B#FFFFFF#000000##FFFFFF
##1D198B1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d198b;
/* rgb */ color: rgb(29, 25, 139);
/* oklch */ color: oklch(32.2% 0.177 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e59ae',
    500: '#1d198b',
    950: '#000000',
  },
}
SCSS
$custom: #1d198b;
$custom-light: #6e59ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d198b",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 242.105,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32242,
    "c": 0.17682,
    "h": 272
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#1D198B
secondary
#B9BE42
accent
#EC3BE6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1D198B

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

Preview Lab → · Contrast checker → · Palette generator →

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