#1D2A78#1D2A78

#1D2A78 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.133 H 270.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#1D2A78
RGBrgb(29, 42, 120)
HSLhsl(231, 61%, 29%)
HSVhsv(231, 76%, 47%)
CMYKcmyk(75.8%, 65%, 0%, 52.9%)
CIE-LABlab(21.10, 23.90, -46.09)
CIE-LCHlch(21.10, 51.92, 297.40°)
OKLaboklab(32.93% 0 -0.1332)
OKLCHoklch(32.93% 0.133 270)
XYZxyz(4.7237, 3.2727, 18.1484)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2A78 #786B1D
analogous
#1D5878 #1D2A78 #3E1D78
triadic
#1D2A78 #781D2A #2A781D
tetradic
#1D2A78 #781D58 #786B1D #1D783E
square
#1D2A78 #781D58 #786B1D #1D783E
split-complementary
#1D2A78 #783E1D #58781D
monochromatic
#060919 #111947 #1D2A78 #293BA9 #3F54D1

Accessibility & contrast

On white

12.69
#1D2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1D2A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2A78
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2A78#FFFFFF#000000##FFFFFF
##1D2A781.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d2a78;
/* rgb */ color: rgb(29, 42, 120);
/* oklch */ color: oklch(32.9% 0.133 270.0);
Tailwind
colors: {
  custom: {
    50: '#6863a0',
    500: '#1d2a78',
    950: '#000000',
  },
}
SCSS
$custom: #1d2a78;
$custom-light: #6863a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2a78",
  "rgb": {
    "r": 29,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 231.429,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32927,
    "c": 0.13316,
    "h": 270
  },
  "luminance": 0.03273
}

Semantic roles & 50–950 ramp

primary
#1D2A78
secondary
#AC9D45
accent
#CD44E4
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1D2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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