#1D2174#1D2174

#1D2174 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.139 H 272.7°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#1D2174
RGBrgb(29, 33, 116)
HSLhsl(237, 60%, 28%)
HSVhsv(237, 75%, 45%)
CMYKcmyk(75%, 71.6%, 0%, 54.5%)
CIE-LABlab(18.41, 28.49, -47.95)
CIE-LCHlch(18.41, 55.78, 300.72°)
OKLaboklab(30.84% 0.0066 -0.1386)
OKLCHoklch(30.84% 0.139 272.7)
XYZxyz(4.2019, 2.6095, 16.8018)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2174 #74701D
analogous
#1D4C74 #1D2174 #441D74
triadic
#1D2174 #741D21 #21741D
tetradic
#1D2174 #741D4C #74701D #1D7444
square
#1D2174 #741D4C #74701D #1D7444
split-complementary
#1D2174 #74441D #4C741D
monochromatic
#060718 #111343 #1D2174 #292FA5 #3D44CE

Accessibility & contrast

On white

13.80
#1D2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1D2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2174
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2174#FFFFFF#000000##FFFFFF
##1D21741.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d2174;
/* rgb */ color: rgb(29, 33, 116);
/* oklch */ color: oklch(30.8% 0.139 272.7);
Tailwind
colors: {
  custom: {
    50: '#685c9d',
    500: '#1d2174',
    950: '#000000',
  },
}
SCSS
$custom: #1d2174;
$custom-light: #685c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2174",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 237.241,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30837,
    "c": 0.13881,
    "h": 272.7
  },
  "luminance": 0.0261
}

Semantic roles & 50–950 ramp

primary
#1D2174
secondary
#A8A445
accent
#DC45E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1D2174

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

Preview Lab → · Contrast checker → · Palette generator →

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