#1D198F#1D198F

#1D198F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.182 H 271.6°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#1D198F
RGBrgb(29, 25, 143)
HSLhsl(242, 70%, 33%)
HSVhsv(242, 83%, 56%)
CMYKcmyk(79.7%, 82.5%, 0%, 43.9%)
CIE-LABlab(19.80, 42.67, -62.74)
CIE-LCHlch(19.80, 75.88, 304.22°)
OKLaboklab(32.73% 0.0051 -0.1816)
OKLCHoklch(32.73% 0.182 271.6)
XYZxyz(5.8106, 2.9390, 26.2423)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D198F #8B8F19
analogous
#19508F #1D198F #58198F
triadic
#1D198F #8F1D19 #198F1D
tetradic
#1D198F #8F1950 #8B8F19 #198F58
square
#1D198F #8F1950 #8B8F19 #198F58
split-complementary
#1D198F #8F5819 #508F19
monochromatic
#080727 #12105B #1D198F #2822C3 #4944DE

Accessibility & contrast

On white

13.22
#1D198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1D198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D198F
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D198F#FFFFFF#000000##FFFFFF
##1D198F1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d198f;
/* rgb */ color: rgb(29, 25, 143);
/* oklch */ color: oklch(32.7% 0.182 271.6);
Tailwind
colors: {
  custom: {
    50: '#7059b1',
    500: '#1d198f',
    950: '#000000',
  },
}
SCSS
$custom: #1d198f;
$custom-light: #7059b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d198f",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 242.034,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.32725,
    "c": 0.18167,
    "h": 271.6
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D198F

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

Preview Lab → · Contrast checker → · Palette generator →

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