#1D2874#1D2874

#1D2874 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.130 H 270.7°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#1D2874
RGBrgb(29, 40, 116)
HSLhsl(232, 60%, 28%)
HSVhsv(232, 75%, 45%)
CMYKcmyk(75%, 65.5%, 0%, 54.5%)
CIE-LABlab(20.20, 23.72, -45.01)
CIE-LCHlch(20.20, 50.88, 297.79°)
OKLaboklab(32.15% 0.0017 -0.13)
OKLCHoklch(32.15% 0.13 270.7)
XYZxyz(4.4168, 3.0393, 16.8735)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2874 #74691D
analogous
#1D5374 #1D2874 #3D1D74
triadic
#1D2874 #741D28 #28741D
tetradic
#1D2874 #741D53 #74691D #1D743D
square
#1D2874 #741D53 #74691D #1D743D
split-complementary
#1D2874 #743D1D #53741D
monochromatic
#060818 #111743 #1D2874 #2939A5 #3D4FCE

Accessibility & contrast

On white

13.06
#1D2874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1D2874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2874
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2874#FFFFFF#000000##FFFFFF
##1D28741.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d2874;
/* rgb */ color: rgb(29, 40, 116);
/* oklch */ color: oklch(32.1% 0.130 270.7);
Tailwind
colors: {
  custom: {
    50: '#67619d',
    500: '#1d2874',
    950: '#000000',
  },
}
SCSS
$custom: #1d2874;
$custom-light: #67619d;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2874",
  "rgb": {
    "r": 29,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 232.414,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32147,
    "c": 0.13002,
    "h": 270.7
  },
  "luminance": 0.0304
}

Semantic roles & 50–950 ramp

primary
#1D2874
secondary
#A89C45
accent
#CF45E3
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1D2874

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

Preview Lab → · Contrast checker → · Palette generator →

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