#1D2D8C#1D2D8C

#1D2D8C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.157 H 268.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#1D2D8C
RGBrgb(29, 45, 140)
HSLhsl(231, 66%, 33%)
HSVhsv(231, 79%, 55%)
CMYKcmyk(79.3%, 67.9%, 0%, 45.1%)
CIE-LABlab(23.77, 29.59, -54.31)
CIE-LCHlch(23.77, 61.85, 298.58°)
OKLaboklab(35.47% -0.003 -0.1572)
OKLCHoklch(35.47% 0.157 268.9)
XYZxyz(6.1771, 4.0307, 25.2583)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2D8C #8C7C1D
analogous
#1D648C #1D2D8C #441D8C
triadic
#1D2D8C #8C1D2D #2D8C1D
tetradic
#1D2D8C #8C1D64 #8C7C1D #1D8C44
square
#1D2D8C #8C1D64 #8C7C1D #1D8C44
split-complementary
#1D2D8C #8C441D #648C1D
monochromatic
#080C27 #121D59 #1D2D8C #283DBF #4A5FD9

Accessibility & contrast

On white

11.63
#1D2D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1D2D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2D8C
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2D8C#FFFFFF#000000##FFFFFF
##1D2D8C1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1d2d8c;
/* rgb */ color: rgb(29, 45, 140);
/* oklch */ color: oklch(35.5% 0.157 268.9);
Tailwind
colors: {
  custom: {
    50: '#6d66af',
    500: '#1d2d8c',
    950: '#000000',
  },
}
SCSS
$custom: #1d2d8c;
$custom-light: #6d66af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2d8c",
  "rgb": {
    "r": 29,
    "g": 45,
    "b": 140
  },
  "hsl": {
    "h": 231.351,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35466,
    "c": 0.15723,
    "h": 268.9
  },
  "luminance": 0.04031
}

Semantic roles & 50–950 ramp

primary
#1D2D8C
secondary
#BCAB49
accent
#D03FE9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D2D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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