#1D2C78#1D2C78

#1D2C78 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.131 H 269.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1D2C78
RGBrgb(29, 44, 120)
HSLhsl(230, 61%, 29%)
HSVhsv(230, 76%, 47%)
CMYKcmyk(75.8%, 63.3%, 0%, 52.9%)
CIE-LABlab(21.65, 22.50, -45.21)
CIE-LCHlch(21.65, 50.50, 296.46°)
OKLaboklab(33.33% -0.0015 -0.1305)
OKLCHoklch(33.33% 0.131 269.3)
XYZxyz(4.7964, 3.4181, 18.1726)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2C78 #78691D
analogous
#1D5A78 #1D2C78 #3C1D78
triadic
#1D2C78 #781D2C #2C781D
tetradic
#1D2C78 #781D5A #78691D #1D783C
square
#1D2C78 #781D5A #78691D #1D783C
split-complementary
#1D2C78 #783C1D #5A781D
monochromatic
#060919 #111A47 #1D2C78 #293EA9 #3F57D1

Accessibility & contrast

On white

12.47
#1D2C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1D2C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2C78
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2C78#FFFFFF#000000##FFFFFF
##1D2C781.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387A
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d2c78;
/* rgb */ color: rgb(29, 44, 120);
/* oklch */ color: oklch(33.3% 0.131 269.3);
Tailwind
colors: {
  custom: {
    50: '#6864a0',
    500: '#1d2c78',
    950: '#000000',
  },
}
SCSS
$custom: #1d2c78;
$custom-light: #6864a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2c78",
  "rgb": {
    "r": 29,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 230.11,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33327,
    "c": 0.13055,
    "h": 269.3
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#1D2C78
secondary
#AC9B45
accent
#CA44E4
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #1D2C78

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

Preview Lab → · Contrast checker → · Palette generator →

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