#1D147F#1D147F

#1D147F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.166 H 273.7°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#1D147F
RGBrgb(29, 20, 127)
HSLhsl(245, 73%, 29%)
HSVhsv(245, 84%, 50%)
CMYKcmyk(77.2%, 84.3%, 0%, 50.2%)
CIE-LABlab(16.96, 39.97, -57.39)
CIE-LCHlch(16.96, 69.94, 304.86°)
OKLaboklab(30.18% 0.0107 -0.166)
OKLCHoklch(30.18% 0.166 273.7)
XYZxyz(4.5863, 2.2934, 20.2755)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D147F #767F14
analogous
#14417F #1D147F #53147F
triadic
#1D147F #7F1D14 #147F1D
tetradic
#1D147F #7F1441 #767F14 #147F53
square
#1D147F #7F1441 #767F14 #147F53
split-complementary
#1D147F #7F5314 #417F14
monochromatic
#06041A #110C4A #1D147F #291CB4 #3E2FDE

Accessibility & contrast

On white

14.40
#1D147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1D147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D147F
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D147F#FFFFFF#000000##FFFFFF
##1D147F1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d147f;
/* rgb */ color: rgb(29, 20, 127);
/* oklch */ color: oklch(30.2% 0.166 273.7);
Tailwind
colors: {
  custom: {
    50: '#6c55a5',
    500: '#1d147f',
    950: '#000000',
  },
}
SCSS
$custom: #1d147f;
$custom-light: #6c55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d147f",
  "rgb": {
    "r": 29,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 245.047,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3018,
    "c": 0.16633,
    "h": 273.7
  },
  "luminance": 0.02294
}

Semantic roles & 50–950 ramp

primary
#1D147F
secondary
#AAB43B
accent
#EF38E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D147F

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

Preview Lab → · Contrast checker → · Palette generator →

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