#1D197E#1D197E

#1D197E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.161 H 273.2°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#1D197E
RGBrgb(29, 25, 126)
HSLhsl(242, 67%, 30%)
HSVhsv(242, 80%, 49%)
CMYKcmyk(77%, 80.2%, 0%, 50.6%)
CIE-LABlab(17.75, 37.00, -55.44)
CIE-LCHlch(17.75, 66.65, 303.72°)
OKLaboklab(30.7% 0.0091 -0.1604)
OKLCHoklch(30.7% 0.161 273.2)
XYZxyz(4.6190, 2.4624, 19.9665)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D197E #7A7E19
analogous
#19487E #1D197E #4F197E
triadic
#1D197E #7E1D19 #197E1D
tetradic
#1D197E #7E1948 #7A7E19 #197E4F
square
#1D197E #7E1948 #7A7E19 #197E4F
split-complementary
#1D197E #7E4F19 #487E19
monochromatic
#06051A #110F4B #1D197E #2923B1 #403AD8

Accessibility & contrast

On white

14.07
#1D197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1D197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D197E
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D197E#FFFFFF#000000##FFFFFF
##1D197E1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1d197e;
/* rgb */ color: rgb(29, 25, 126);
/* oklch */ color: oklch(30.7% 0.161 273.2);
Tailwind
colors: {
  custom: {
    50: '#6b58a5',
    500: '#1d197e',
    950: '#000000',
  },
}
SCSS
$custom: #1d197e;
$custom-light: #6b58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d197e",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 242.376,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30696,
    "c": 0.16068,
    "h": 273.2
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D197E

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

Preview Lab → · Contrast checker → · Palette generator →

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