#1D2F5D#1D2F5D

#1D2F5D is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.7% C 0.085 H 265.7°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#1D2F5D
RGBrgb(29, 47, 93)
HSLhsl(223, 52%, 24%)
HSVhsv(223, 69%, 36%)
CMYKcmyk(68.8%, 49.5%, 0%, 63.5%)
CIE-LABlab(20.38, 9.52, -29.76)
CIE-LCHlch(20.38, 31.24, 287.74°)
OKLaboklab(31.69% -0.0064 -0.0851)
OKLCHoklch(31.69% 0.085 265.7)
XYZxyz(3.4983, 3.0842, 10.7648)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F5D #5D4B1D
analogous
#1D4F5D #1D2F5D #2B1D5D
triadic
#1D2F5D #5D1D2F #2F5D1D
tetradic
#1D2F5D #5D1D4F #5D4B1D #1D5D2B
square
#1D2F5D #5D1D4F #5D4B1D #1D5D2B
split-complementary
#1D2F5D #5D2B1D #4F5D1D
monochromatic
#070C17 #0E172E #1D2F5D #2C478C #3A5EBA

Accessibility & contrast

On white

12.99
#1D2F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1D2F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F5D
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F5D#FFFFFF#000000##FFFFFF
##1D2F5D1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18345F
Deuteranopia (green-blind)
#0D2E5C
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d2f5d;
/* rgb */ color: rgb(29, 47, 93);
/* oklch */ color: oklch(31.7% 0.085 265.7);
Tailwind
colors: {
  custom: {
    50: '#61678b',
    500: '#1d2f5d',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f5d;
$custom-light: #61678b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f5d",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 93
  },
  "hsl": {
    "h": 223.125,
    "s": 52.459,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31693,
    "c": 0.08531,
    "h": 265.7
  },
  "luminance": 0.03085
}

Semantic roles & 50–950 ramp

primary
#1D2F5D
secondary
#927C44
accent
#B34CDC
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #1D2F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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