#1D2D87#1D2D87

#1D2D87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.150 H 269.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#1D2D87
RGBrgb(29, 45, 135)
HSLhsl(231, 65%, 32%)
HSVhsv(231, 79%, 53%)
CMYKcmyk(78.5%, 66.7%, 0%, 47.1%)
CIE-LABlab(23.29, 27.67, -51.98)
CIE-LCHlch(23.29, 58.89, 298.03°)
OKLaboklab(34.97% -0.0027 -0.1504)
OKLCHoklch(34.97% 0.15 269)
XYZxyz(5.8167, 3.8866, 23.3606)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2D87 #87771D
analogous
#1D6287 #1D2D87 #421D87
triadic
#1D2D87 #871D2D #2D871D
tetradic
#1D2D87 #871D62 #87771D #1D8742
square
#1D2D87 #871D62 #87771D #1D8742
split-complementary
#1D2D87 #87421D #62871D
monochromatic
#070B22 #121C55 #1D2D87 #283EB9 #475DD7

Accessibility & contrast

On white

11.82
#1D2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1D2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2D87
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2D87#FFFFFF#000000##FFFFFF
##1D2D871.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1d2d87;
/* rgb */ color: rgb(29, 45, 135);
/* oklch */ color: oklch(35.0% 0.150 269.0);
Tailwind
colors: {
  custom: {
    50: '#6b66ab',
    500: '#1d2d87',
    950: '#000000',
  },
}
SCSS
$custom: #1d2d87;
$custom-light: #6b66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2d87",
  "rgb": {
    "r": 29,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 230.943,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34968,
    "c": 0.1504,
    "h": 269
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#1D2D87
secondary
#B9A846
accent
#CE40E8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1D2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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