#1D4F8B#1D4F8B

#1D4F8B is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.7% C 0.113 H 255.1°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#1D4F8B
RGBrgb(29, 79, 139)
HSLhsl(213, 65%, 33%)
HSVhsv(213, 79%, 55%)
CMYKcmyk(79.1%, 43.2%, 0%, 45.5%)
CIE-LABlab(33.38, 5.90, -38.12)
CIE-LCHlch(33.38, 38.57, 278.80°)
OKLaboklab(42.72% -0.029 -0.109)
OKLCHoklch(42.72% 0.113 255.1)
XYZxyz(7.9611, 7.7163, 25.4909)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4F8B #8B591D
analogous
#1D868B #1D4F8B #221D8B
triadic
#1D4F8B #8B1D4F #4F8B1D
tetradic
#1D4F8B #8B1D86 #8B591D #1D8B22
square
#1D4F8B #8B1D86 #8B591D #1D8B22
split-complementary
#1D4F8B #8B221D #868B1D
monochromatic
#081526 #123258 #1D4F8B #286CBE #498BD9

Accessibility & contrast

On white

8.26
#1D4F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D4F8B
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4F8B#FFFFFF#000000##FFFFFF
##1D4F8B1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548D
Deuteranopia (green-blind)
#1E4A8A
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1d4f8b;
/* rgb */ color: rgb(29, 79, 139);
/* oklch */ color: oklch(42.7% 0.113 255.1);
Tailwind
colors: {
  custom: {
    50: '#6a7fad',
    500: '#1d4f8b',
    950: '#000000',
  },
}
SCSS
$custom: #1d4f8b;
$custom-light: #6a7fad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4f8b",
  "rgb": {
    "r": 29,
    "g": 79,
    "b": 139
  },
  "hsl": {
    "h": 212.727,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42715,
    "c": 0.11285,
    "h": 255.1
  },
  "luminance": 0.07717
}

Semantic roles & 50–950 ramp

primary
#1D4F8B
secondary
#BB8749
accent
#9C3FE8
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1D4F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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