#1D2156#1D2156

#1D2156 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.095 H 275.2°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#1D2156
RGBrgb(29, 33, 86)
HSLhsl(236, 50%, 23%)
HSVhsv(236, 66%, 34%)
CMYKcmyk(66.3%, 61.6%, 0%, 66.3%)
CIE-LABlab(15.60, 16.93, -32.80)
CIE-LCHlch(15.60, 36.92, 297.30°)
OKLaboklab(27.91% 0.0085 -0.0942)
OKLCHoklch(27.91% 0.095 275.2)
XYZxyz(2.7297, 2.0206, 9.0485)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2156 #56521D
analogous
#1D3E56 #1D2156 #351D56
triadic
#1D2156 #561D21 #21561D
tetradic
#1D2156 #561D3E #56521D #1D5635
square
#1D2156 #561D3E #56521D #1D5635
split-complementary
#1D2156 #56351D #3E561D
monochromatic
#080917 #0E0F28 #1D2156 #2C3384 #3C44B2

Accessibility & contrast

On white

14.96
#1D2156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1D2156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2156
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2156#FFFFFF#000000##FFFFFF
##1D21561.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d2156;
/* rgb */ color: rgb(29, 33, 86);
/* oklch */ color: oklch(27.9% 0.095 275.2);
Tailwind
colors: {
  custom: {
    50: '#605c86',
    500: '#1d2156',
    950: '#000000',
  },
}
SCSS
$custom: #1d2156;
$custom-light: #605c86;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2156",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 235.789,
    "s": 49.565,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27907,
    "c": 0.09461,
    "h": 275.2
  },
  "luminance": 0.02021
}

Semantic roles & 50–950 ramp

primary
#1D2156
secondary
#8B8644
accent
#CF4FD9
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #1D2156

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

Preview Lab → · Contrast checker → · Palette generator →

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