#1D2772#1D2772

#1D2772 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.128 H 271.1°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#1D2772
RGBrgb(29, 39, 114)
HSLhsl(233, 59%, 28%)
HSVhsv(233, 75%, 45%)
CMYKcmyk(74.6%, 65.8%, 0%, 55.3%)
CIE-LABlab(19.75, 23.64, -44.47)
CIE-LCHlch(19.75, 50.36, 297.99°)
OKLaboklab(31.76% 0.0025 -0.1284)
OKLCHoklch(31.76% 0.128 271.1)
XYZxyz(4.2684, 2.9267, 16.2563)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2772 #72681D
analogous
#1D5172 #1D2772 #3D1D72
triadic
#1D2772 #721D27 #27721D
tetradic
#1D2772 #721D51 #72681D #1D723D
square
#1D2772 #721D51 #72681D #1D723D
split-complementary
#1D2772 #723D1D #51721D
monochromatic
#060818 #111641 #1D2772 #2938A3 #3C4DCD

Accessibility & contrast

On white

13.25
#1D2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1D2772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2772
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2772#FFFFFF#000000##FFFFFF
##1D27721.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d2772;
/* rgb */ color: rgb(29, 39, 114);
/* oklch */ color: oklch(31.8% 0.128 271.1);
Tailwind
colors: {
  custom: {
    50: '#66619b',
    500: '#1d2772',
    950: '#000000',
  },
}
SCSS
$custom: #1d2772;
$custom-light: #66619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2772",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 232.941,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31756,
    "c": 0.12844,
    "h": 271.1
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#1D2772
secondary
#A69B45
accent
#D045E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1D2772

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

Preview Lab → · Contrast checker → · Palette generator →

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