#1D1F79#1D1F79

#1D1F79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.148 H 272.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#1D1F79
RGBrgb(29, 31, 121)
HSLhsl(239, 61%, 29%)
HSVhsv(239, 76%, 47%)
CMYKcmyk(76%, 74.4%, 0%, 52.5%)
CIE-LABlab(18.46, 31.64, -51.08)
CIE-LCHlch(18.46, 60.08, 301.78°)
OKLaboklab(31.03% 0.0071 -0.1478)
OKLCHoklch(31.03% 0.148 272.8)
XYZxyz(4.4467, 2.6212, 18.3570)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F79 #79771D
analogous
#1D4D79 #1D1F79 #491D79
triadic
#1D1F79 #791D1F #1F791D
tetradic
#1D1F79 #791D4D #79771D #1D7949
square
#1D1F79 #791D4D #79771D #1D7949
split-complementary
#1D1F79 #79491D #4D791D
monochromatic
#060619 #111248 #1D1F79 #292CAA #3F43D1

Accessibility & contrast

On white

13.78
#1D1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1D1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F79
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F79#FFFFFF#000000##FFFFFF
##1D1F791.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d1f79;
/* rgb */ color: rgb(29, 31, 121);
/* oklch */ color: oklch(31.0% 0.148 272.8);
Tailwind
colors: {
  custom: {
    50: '#695ba1',
    500: '#1d1f79',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f79;
$custom-light: #695ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f79",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 238.696,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31033,
    "c": 0.14794,
    "h": 272.8
  },
  "luminance": 0.02622
}

Semantic roles & 50–950 ramp

primary
#1D1F79
secondary
#ADAB45
accent
#E143E4
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1D1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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