#1D197B#1D197B

#1D197B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.157 H 273.6°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#1D197B
RGBrgb(29, 25, 123)
HSLhsl(242, 66%, 29%)
HSVhsv(242, 80%, 48%)
CMYKcmyk(76.4%, 79.7%, 0%, 51.8%)
CIE-LABlab(17.40, 35.97, -54.11)
CIE-LCHlch(17.40, 64.97, 303.61°)
OKLaboklab(30.35% 0.0098 -0.1565)
OKLCHoklch(30.35% 0.157 273.6)
XYZxyz(4.4283, 2.3861, 18.9622)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D197B #777B19
analogous
#19467B #1D197B #4E197B
triadic
#1D197B #7B1D19 #197B1D
tetradic
#1D197B #7B1946 #777B19 #197B4E
square
#1D197B #7B1946 #777B19 #197B4E
split-complementary
#1D197B #7B4E19 #467B19
monochromatic
#060519 #110F48 #1D197B #2923AE #3E38D7

Accessibility & contrast

On white

14.21
#1D197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1D197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D197B
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D197B#FFFFFF#000000##FFFFFF
##1D197B1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d197b;
/* rgb */ color: rgb(29, 25, 123);
/* oklch */ color: oklch(30.3% 0.157 273.6);
Tailwind
colors: {
  custom: {
    50: '#6a58a2',
    500: '#1d197b',
    950: '#000000',
  },
}
SCSS
$custom: #1d197b;
$custom-light: #6a58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d197b",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 242.449,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30345,
    "c": 0.15686,
    "h": 273.6
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#1D197B
secondary
#ABAF40
accent
#E93FE2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D197B

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

Preview Lab → · Contrast checker → · Palette generator →

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