#1D198E#1D198E

#1D198E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.180 H 271.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#1D198E
RGBrgb(29, 25, 142)
HSLhsl(242, 70%, 33%)
HSVhsv(242, 82%, 56%)
CMYKcmyk(79.6%, 82.4%, 0%, 44.3%)
CIE-LABlab(19.67, 42.34, -62.32)
CIE-LCHlch(19.67, 75.35, 304.19°)
OKLaboklab(32.6% 0.0053 -0.1804)
OKLCHoklch(32.6% 0.18 271.7)
XYZxyz(5.7352, 2.9088, 25.8451)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D198E #8A8E19
analogous
#19508E #1D198E #57198E
triadic
#1D198E #8E1D19 #198E1D
tetradic
#1D198E #8E1950 #8A8E19 #198E57
square
#1D198E #8E1950 #8A8E19 #198E57
split-complementary
#1D198E #8E5719 #508E19
monochromatic
#080726 #12105A #1D198E #2822C2 #4943DE

Accessibility & contrast

On white

13.28
#1D198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1D198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D198E
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D198E#FFFFFF#000000##FFFFFF
##1D198E1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d198e;
/* rgb */ color: rgb(29, 25, 142);
/* oklch */ color: oklch(32.6% 0.180 271.7);
Tailwind
colors: {
  custom: {
    50: '#6f59b0',
    500: '#1d198e',
    950: '#000000',
  },
}
SCSS
$custom: #1d198e;
$custom-light: #6f59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d198e",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 242.051,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32604,
    "c": 0.18046,
    "h": 271.7
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#1D198E
secondary
#BBBF44
accent
#ED3BE7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D198E

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

Preview Lab → · Contrast checker → · Palette generator →

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