#1D2D7B#1D2D7B

#1D2D7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.134 H 269.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#1D2D7B
RGBrgb(29, 45, 123)
HSLhsl(230, 62%, 30%)
HSVhsv(230, 76%, 48%)
CMYKcmyk(76.4%, 63.4%, 0%, 51.8%)
CIE-LABlab(22.19, 22.99, -46.23)
CIE-LCHlch(22.19, 51.63, 296.44°)
OKLaboklab(33.81% -0.0023 -0.1335)
OKLCHoklch(33.81% 0.134 269)
XYZxyz(5.0190, 3.5675, 19.1591)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2D7B #7B6B1D
analogous
#1D5C7B #1D2D7B #3C1D7B
triadic
#1D2D7B #7B1D2D #2D7B1D
tetradic
#1D2D7B #7B1D5C #7B6B1D #1D7B3C
square
#1D2D7B #7B1D5C #7B6B1D #1D7B3C
split-complementary
#1D2D7B #7B3C1D #5C7B1D
monochromatic
#060919 #111B49 #1D2D7B #293FAD #4059D2

Accessibility & contrast

On white

12.25
#1D2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1D2D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2D7B
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2D7B#FFFFFF#000000##FFFFFF
##1D2D7B1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1d2d7b;
/* rgb */ color: rgb(29, 45, 123);
/* oklch */ color: oklch(33.8% 0.134 269.0);
Tailwind
colors: {
  custom: {
    50: '#6865a2',
    500: '#1d2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #1d2d7b;
$custom-light: #6865a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2d7b",
  "rgb": {
    "r": 29,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 229.787,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33811,
    "c": 0.13356,
    "h": 269
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#1D2D7B
secondary
#AF9D45
accent
#C943E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1D2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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