#1D2180#1D2180

#1D2180 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.155 H 271.8°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#1D2180
RGBrgb(29, 33, 128)
HSLhsl(238, 63%, 31%)
HSVhsv(238, 77%, 50%)
CMYKcmyk(77.3%, 74.2%, 0%, 49.8%)
CIE-LABlab(19.67, 32.93, -53.54)
CIE-LCHlch(19.67, 62.85, 301.59°)
OKLaboklab(32.12% 0.0049 -0.1549)
OKLCHoklch(32.12% 0.155 271.8)
XYZxyz(4.9455, 2.9069, 20.7183)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2180 #807C1D
analogous
#1D5280 #1D2180 #4A1D80
triadic
#1D2180 #801D21 #21801D
tetradic
#1D2180 #801D52 #807C1D #1D804A
square
#1D2180 #801D52 #807C1D #1D804A
split-complementary
#1D2180 #804A1D #52801D
monochromatic
#06071C #12144E #1D2180 #282EB2 #4349D4

Accessibility & contrast

On white

13.28
#1D2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1D2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2180
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2180#FFFFFF#000000##FFFFFF
##1D21801.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d2180;
/* rgb */ color: rgb(29, 33, 128);
/* oklch */ color: oklch(32.1% 0.155 271.8);
Tailwind
colors: {
  custom: {
    50: '#6b5da6',
    500: '#1d2180',
    950: '#000000',
  },
}
SCSS
$custom: #1d2180;
$custom-light: #6b5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2180",
  "rgb": {
    "r": 29,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 237.576,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32124,
    "c": 0.15503,
    "h": 271.8
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#1D2180
secondary
#B3AF45
accent
#DF42E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1D2180

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

Preview Lab → · Contrast checker → · Palette generator →

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