#1D197F#1D197F

#1D197F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.162 H 273.1°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#1D197F
RGBrgb(29, 25, 127)
HSLhsl(242, 67%, 30%)
HSVhsv(242, 80%, 50%)
CMYKcmyk(77.2%, 80.3%, 0%, 50.2%)
CIE-LABlab(17.87, 37.34, -55.88)
CIE-LCHlch(17.87, 67.21, 303.75°)
OKLaboklab(30.81% 0.0089 -0.1617)
OKLCHoklch(30.81% 0.162 273.1)
XYZxyz(4.6838, 2.4883, 20.3080)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D197F #7B7F19
analogous
#19487F #1D197F #50197F
triadic
#1D197F #7F1D19 #197F1D
tetradic
#1D197F #7F1948 #7B7F19 #197F50
square
#1D197F #7F1948 #7B7F19 #197F50
split-complementary
#1D197F #7F5019 #487F19
monochromatic
#06051A #110F4C #1D197F #2923B2 #403AD8

Accessibility & contrast

On white

14.02
#1D197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1D197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D197F
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D197F#FFFFFF#000000##FFFFFF
##1D197F1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d197f;
/* rgb */ color: rgb(29, 25, 127);
/* oklch */ color: oklch(30.8% 0.162 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b58a5',
    500: '#1d197f',
    950: '#000000',
  },
}
SCSS
$custom: #1d197f;
$custom-light: #6b58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d197f",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 242.353,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30814,
    "c": 0.16194,
    "h": 273.1
  },
  "luminance": 0.02489
}

Semantic roles & 50–950 ramp

primary
#1D197F
secondary
#AFB341
accent
#EA3EE3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D197F

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

Preview Lab → · Contrast checker → · Palette generator →

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