#1D1180#1D1180

#1D1180 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.170 H 273.8°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#1D1180
RGBrgb(29, 17, 128)
HSLhsl(246, 77%, 28%)
HSVhsv(246, 87%, 50%)
CMYKcmyk(77.3%, 86.7%, 0%, 49.8%)
CIE-LABlab(16.60, 41.71, -58.61)
CIE-LCHlch(16.60, 71.94, 305.44°)
OKLaboklab(29.97% 0.0114 -0.1695)
OKLCHoklch(29.97% 0.17 273.8)
XYZxyz(4.6021, 2.2201, 20.6039)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1180 #748011
analogous
#113D80 #1D1180 #541180
triadic
#1D1180 #801D11 #11801D
tetradic
#1D1180 #80113D #748011 #118054
square
#1D1180 #80113D #748011 #118054
split-complementary
#1D1180 #805411 #3D8011
monochromatic
#06041B #110A4A #1D1180 #2918B6 #3D29E3

Accessibility & contrast

On white

14.54
#1D1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1D1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1180
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1180#FFFFFF#000000##FFFFFF
##1D11801.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E83
Deuteranopia (green-blind)
#00247E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1d1180;
/* rgb */ color: rgb(29, 17, 128);
/* oklch */ color: oklch(30.0% 0.170 273.8);
Tailwind
colors: {
  custom: {
    50: '#6c54a6',
    500: '#1d1180',
    950: '#000000',
  },
}
SCSS
$custom: #1d1180;
$custom-light: #6c54a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1180",
  "rgb": {
    "r": 29,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 246.486,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29972,
    "c": 0.16985,
    "h": 273.8
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#1D1180
secondary
#A8B637
accent
#F335DF
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1180

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

Preview Lab → · Contrast checker → · Palette generator →

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