#1D2157#1D2157

#1D2157 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.096 H 275.1°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#1D2157
RGBrgb(29, 33, 87)
HSLhsl(236, 50%, 23%)
HSVhsv(236, 67%, 34%)
CMYKcmyk(66.7%, 62.1%, 0%, 65.9%)
CIE-LABlab(15.68, 17.33, -33.34)
CIE-LCHlch(15.68, 37.57, 297.46°)
OKLaboklab(28% 0.0086 -0.0958)
OKLCHoklch(28% 0.096 275.1)
XYZxyz(2.7703, 2.0368, 9.2621)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2157 #57531D
analogous
#1D3E57 #1D2157 #361D57
triadic
#1D2157 #571D21 #21571D
tetradic
#1D2157 #571D3E #57531D #1D5736
square
#1D2157 #571D3E #57531D #1D5736
split-complementary
#1D2157 #57361D #3E571D
monochromatic
#080917 #0E1029 #1D2157 #2C3285 #3C44B3

Accessibility & contrast

On white

14.92
#1D2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D2157
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2157#FFFFFF#000000##FFFFFF
##1D21571.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1d2157;
/* rgb */ color: rgb(29, 33, 87);
/* oklch */ color: oklch(28.0% 0.096 275.1);
Tailwind
colors: {
  custom: {
    50: '#605c87',
    500: '#1d2157',
    950: '#000000',
  },
}
SCSS
$custom: #1d2157;
$custom-light: #605c87;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2157",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 235.862,
    "s": 50,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27996,
    "c": 0.09618,
    "h": 275.1
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#1D2157
secondary
#8C8744
accent
#D04EDA
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #1D2157

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

Preview Lab → · Contrast checker → · Palette generator →

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