#1D2172#1D2172

#1D2172 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.136 H 272.9°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#1D2172
RGBrgb(29, 33, 114)
HSLhsl(237, 59%, 28%)
HSVhsv(237, 75%, 45%)
CMYKcmyk(74.6%, 71.1%, 0%, 55.3%)
CIE-LABlab(18.20, 27.74, -47.00)
CIE-LCHlch(18.20, 54.57, 300.55°)
OKLaboklab(30.63% 0.0069 -0.1359)
OKLCHoklch(30.63% 0.136 272.9)
XYZxyz(4.0868, 2.5634, 16.1957)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2172 #726E1D
analogous
#1D4C72 #1D2172 #431D72
triadic
#1D2172 #721D21 #21721D
tetradic
#1D2172 #721D4C #726E1D #1D7243
square
#1D2172 #721D4C #726E1D #1D7243
split-complementary
#1D2172 #72431D #4C721D
monochromatic
#060718 #111341 #1D2172 #292FA3 #3C43CD

Accessibility & contrast

On white

13.88
#1D2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1D2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2172
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2172#FFFFFF#000000##FFFFFF
##1D21721.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d2172;
/* rgb */ color: rgb(29, 33, 114);
/* oklch */ color: oklch(30.6% 0.136 272.9);
Tailwind
colors: {
  custom: {
    50: '#675c9b',
    500: '#1d2172',
    950: '#000000',
  },
}
SCSS
$custom: #1d2172;
$custom-light: #675c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2172",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 237.176,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30628,
    "c": 0.13603,
    "h": 272.9
  },
  "luminance": 0.02564
}

Semantic roles & 50–950 ramp

primary
#1D2172
secondary
#A6A245
accent
#DB45E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1D2172

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

Preview Lab → · Contrast checker → · Palette generator →

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