#1D4F8A#1D4F8A

#1D4F8A is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.6% C 0.111 H 254.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#1D4F8A
RGBrgb(29, 79, 138)
HSLhsl(212, 65%, 33%)
HSVhsv(212, 79%, 54%)
CMYKcmyk(79%, 42.8%, 0%, 45.9%)
CIE-LABlab(33.32, 5.50, -37.60)
CIE-LCHlch(33.32, 38.01, 278.32°)
OKLaboklab(42.65% -0.0293 -0.1075)
OKLCHoklch(42.65% 0.111 254.8)
XYZxyz(7.8884, 7.6872, 25.1079)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4F8A #8A581D
analogous
#1D858A #1D4F8A #221D8A
triadic
#1D4F8A #8A1D4F #4F8A1D
tetradic
#1D4F8A #8A1D85 #8A581D #1D8A22
square
#1D4F8A #8A1D85 #8A581D #1D8A22
split-complementary
#1D4F8A #8A221D #858A1D
monochromatic
#081525 #123257 #1D4F8A #286CBD #498BD9

Accessibility & contrast

On white

8.28
#1D4F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#1D4F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4F8A
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4F8A#FFFFFF#000000##FFFFFF
##1D4F8A1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#1F4A89
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1d4f8a;
/* rgb */ color: rgb(29, 79, 138);
/* oklch */ color: oklch(42.6% 0.111 254.8);
Tailwind
colors: {
  custom: {
    50: '#6a7fac',
    500: '#1d4f8a',
    950: '#000000',
  },
}
SCSS
$custom: #1d4f8a;
$custom-light: #6a7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4f8a",
  "rgb": {
    "r": 29,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 212.477,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42646,
    "c": 0.11145,
    "h": 254.8
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#1D4F8A
secondary
#BB8648
accent
#9B40E8
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1D4F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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