#1D314F#1D314F

#1D314F is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.2% C 0.060 H 258.3°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#1D314F
RGBrgb(29, 49, 79)
HSLhsl(216, 46%, 21%)
HSVhsv(216, 63%, 31%)
CMYKcmyk(63.3%, 38%, 0%, 69%)
CIE-LABlab(20.13, 2.55, -20.84)
CIE-LCHlch(20.13, 20.99, 276.98°)
OKLaboklab(31.21% -0.0122 -0.0589)
OKLCHoklch(31.21% 0.06 258.3)
XYZxyz(3.0158, 3.0221, 7.8200)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D314F #4F3B1D
analogous
#1D4A4F #1D314F #221D4F
triadic
#1D314F #4F1D31 #314F1D
tetradic
#1D314F #4F1D4A #4F3B1D #1D4F22
square
#1D314F #4F1D4A #4F3B1D #1D4F22
split-complementary
#1D314F #4F221D #4A4F1D
monochromatic
#080E16 #0D1522 #1D314F #2D4D7C #3E69A9

Accessibility & contrast

On white

13.09
#1D314F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1D314F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D314F
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D314F#FFFFFF#000000##FFFFFF
##1D314F1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253350
Deuteranopia (green-blind)
#1E2E4E
Tritanopia (blue-blind)
#00383C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d314f;
/* rgb */ color: rgb(29, 49, 79);
/* oklch */ color: oklch(31.2% 0.060 258.3);
Tailwind
colors: {
  custom: {
    50: '#5e6880',
    500: '#1d314f',
    950: '#000000',
  },
}
SCSS
$custom: #1d314f;
$custom-light: #5e6880;
$custom-dark: #000000;
JSON
{
  "hex": "#1d314f",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 79
  },
  "hsl": {
    "h": 216,
    "s": 46.296,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31212,
    "c": 0.06015,
    "h": 258.3
  },
  "luminance": 0.03022
}

Semantic roles & 50–950 ramp

primary
#1D314F
secondary
#846A44
accent
#A152D6
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04060A
muted
#797A7C

Preview Lab

Preview with #1D314F

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

Preview Lab → · Contrast checker → · Palette generator →

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