#1D3154#1D3154

#1D3154 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.5% C 0.068 H 260.9°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#1D3154
RGBrgb(29, 49, 84)
HSLhsl(218, 49%, 22%)
HSVhsv(218, 65%, 33%)
CMYKcmyk(65.5%, 41.7%, 0%, 67.1%)
CIE-LABlab(20.43, 4.50, -23.71)
CIE-LCHlch(20.43, 24.13, 280.75°)
OKLaboklab(31.54% -0.0108 -0.0673)
OKLCHoklch(31.54% 0.068 260.9)
XYZxyz(3.2047, 3.0977, 8.8148)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3154 #54401D
analogous
#1D4D54 #1D3154 #251D54
triadic
#1D3154 #541D31 #31541D
tetradic
#1D3154 #541D4D #54401D #1D5425
square
#1D3154 #541D4D #54401D #1D5425
split-complementary
#1D3154 #54251D #4D541D
monochromatic
#080D17 #0D1627 #1D3154 #2D4C81 #3C66AF

Accessibility & contrast

On white

12.97
#1D3154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1D3154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3154
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3154#FFFFFF#000000##FFFFFF
##1D31541.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223455
Deuteranopia (green-blind)
#1B2F53
Tritanopia (blue-blind)
#00393E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d3154;
/* rgb */ color: rgb(29, 49, 84);
/* oklch */ color: oklch(31.5% 0.068 260.9);
Tailwind
colors: {
  custom: {
    50: '#5f6884',
    500: '#1d3154',
    950: '#000000',
  },
}
SCSS
$custom: #1d3154;
$custom-light: #5f6884;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3154",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 84
  },
  "hsl": {
    "h": 218.182,
    "s": 48.673,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31542,
    "c": 0.06814,
    "h": 260.9
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#1D3154
secondary
#897044
accent
#A750D8
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#05060B
muted
#797A7C

Preview Lab

Preview with #1D3154

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

Preview Lab → · Contrast checker → · Palette generator →

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