#1D2158#1D2158

#1D2158 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.098 H 275.0°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#1D2158
RGBrgb(29, 33, 88)
HSLhsl(236, 50%, 23%)
HSVhsv(236, 67%, 35%)
CMYKcmyk(67%, 62.5%, 0%, 65.5%)
CIE-LABlab(15.76, 17.72, -33.87)
CIE-LCHlch(15.76, 38.23, 297.61°)
OKLaboklab(28.09% 0.0086 -0.0974)
OKLCHoklch(28.09% 0.098 275)
XYZxyz(2.8114, 2.0533, 9.4788)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2158 #58541D
analogous
#1D3E58 #1D2158 #361D58
triadic
#1D2158 #581D21 #21581D
tetradic
#1D2158 #581D3E #58541D #1D5836
square
#1D2158 #581D3E #58541D #1D5836
split-complementary
#1D2158 #58361D #3E581D
monochromatic
#080917 #0E102A #1D2158 #2C3286 #3B44B4

Accessibility & contrast

On white

14.89
#1D2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1D2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2158
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2158#FFFFFF#000000##FFFFFF
##1D21581.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d2158;
/* rgb */ color: rgb(29, 33, 88);
/* oklch */ color: oklch(28.1% 0.098 275.0);
Tailwind
colors: {
  custom: {
    50: '#615c88',
    500: '#1d2158',
    950: '#000000',
  },
}
SCSS
$custom: #1d2158;
$custom-light: #615c88;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2158",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 235.932,
    "s": 50.427,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28086,
    "c": 0.09775,
    "h": 275
  },
  "luminance": 0.02054
}

Semantic roles & 50–950 ramp

primary
#1D2158
secondary
#8D8844
accent
#D04EDA
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #1D2158

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

Preview Lab → · Contrast checker → · Palette generator →

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