#1D2D7F#1D2D7F

#1D2D7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.139 H 269.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#1D2D7F
RGBrgb(29, 45, 127)
HSLhsl(230, 63%, 31%)
HSVhsv(230, 77%, 50%)
CMYKcmyk(77.2%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.55, 24.56, -48.18)
CIE-LCHlch(22.55, 54.08, 297.01°)
OKLaboklab(34.19% -0.0024 -0.1392)
OKLCHoklch(34.19% 0.139 269)
XYZxyz(5.2745, 3.6697, 20.5049)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2D7F #7F6F1D
analogous
#1D5E7F #1D2D7F #3E1D7F
triadic
#1D2D7F #7F1D2D #2D7F1D
tetradic
#1D2D7F #7F1D5E #7F6F1D #1D7F3E
square
#1D2D7F #7F1D5E #7F6F1D #1D7F3E
split-complementary
#1D2D7F #7F3E1D #5E7F1D
monochromatic
#060A1B #121B4D #1D2D7F #283FB1 #425AD4

Accessibility & contrast

On white

12.11
#1D2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1D2D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2D7F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2D7F#FFFFFF#000000##FFFFFF
##1D2D7F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d2d7f;
/* rgb */ color: rgb(29, 45, 127);
/* oklch */ color: oklch(34.2% 0.139 269.0);
Tailwind
colors: {
  custom: {
    50: '#6965a5',
    500: '#1d2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #1d2d7f;
$custom-light: #6965a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2d7f",
  "rgb": {
    "r": 29,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 230.204,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3419,
    "c": 0.13925,
    "h": 269
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#1D2D7F
secondary
#B2A145
accent
#CB42E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1D2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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