#1D1F4E#1D1F4E

#1D1F4E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.085 H 277.2°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#1D1F4E
RGBrgb(29, 31, 78)
HSLhsl(238, 46%, 21%)
HSVhsv(238, 63%, 31%)
CMYKcmyk(62.8%, 60.3%, 0%, 69.4%)
CIE-LABlab(14.35, 15.28, -29.39)
CIE-LCHlch(14.35, 33.12, 297.47°)
OKLaboklab(26.77% 0.0106 -0.0842)
OKLCHoklch(26.77% 0.085 277.2)
XYZxyz(2.3714, 1.7911, 7.4270)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F4E #4E4C1D
analogous
#1D374E #1D1F4E #331D4E
triadic
#1D1F4E #4E1D1F #1F4E1D
tetradic
#1D1F4E #4E1D37 #4E4C1D #1D4E33
square
#1D1F4E #4E1D37 #4E4C1D #1D4E33
split-complementary
#1D1F4E #4E331D #374E1D
monochromatic
#080916 #0C0D21 #1D1F4E #2E317B #3E42A7

Accessibility & contrast

On white

15.46
#1D1F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1D1F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F4E
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F4E#FFFFFF#000000##FFFFFF
##1D1F4E1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022650
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#022A33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1d1f4e;
/* rgb */ color: rgb(29, 31, 78);
/* oklch */ color: oklch(26.8% 0.085 277.2);
Tailwind
colors: {
  custom: {
    50: '#5e5a80',
    500: '#1d1f4e',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f4e;
$custom-light: #5e5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f4e",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 237.551,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26769,
    "c": 0.08486,
    "h": 277.2
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#1D1F4E
secondary
#838144
accent
#D052D5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#05030A
muted
#79787C

Preview Lab

Preview with #1D1F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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