#1D2154#1D2154

#1D2154 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.7% C 0.091 H 275.3°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#1D2154
RGBrgb(29, 33, 84)
HSLhsl(236, 49%, 22%)
HSVhsv(236, 65%, 33%)
CMYKcmyk(65.5%, 60.7%, 0%, 67.1%)
CIE-LABlab(15.43, 16.15, -31.72)
CIE-LCHlch(15.43, 35.60, 296.98°)
OKLaboklab(27.73% 0.0085 -0.0911)
OKLCHoklch(27.73% 0.091 275.3)
XYZxyz(2.6503, 1.9888, 8.6300)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2154 #54501D
analogous
#1D3D54 #1D2154 #341D54
triadic
#1D2154 #541D21 #21541D
tetradic
#1D2154 #541D3D #54501D #1D5434
square
#1D2154 #541D3D #54501D #1D5434
split-complementary
#1D2154 #54341D #3D541D
monochromatic
#080917 #0D0F27 #1D2154 #2D3381 #3C45AF

Accessibility & contrast

On white

15.02
#1D2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D2154
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2154#FFFFFF#000000##FFFFFF
##1D21541.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d2154;
/* rgb */ color: rgb(29, 33, 84);
/* oklch */ color: oklch(27.7% 0.091 275.3);
Tailwind
colors: {
  custom: {
    50: '#605c85',
    500: '#1d2154',
    950: '#000000',
  },
}
SCSS
$custom: #1d2154;
$custom-light: #605c85;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2154",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 235.636,
    "s": 48.673,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2773,
    "c": 0.09144,
    "h": 275.3
  },
  "luminance": 0.01989
}

Semantic roles & 50–950 ramp

primary
#1D2154
secondary
#898444
accent
#CE50D8
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #1D2154

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

Preview Lab → · Contrast checker → · Palette generator →

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