#1F4E77#1F4E77

#1F4E77 is a dark, moderate cyan. Relative luminance 0.071; OKLCH L 41.2% C 0.086 H 248.0°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#1F4E77
RGBrgb(31, 78, 119)
HSLhsl(208, 59%, 29%)
HSVhsv(208, 74%, 47%)
CMYKcmyk(73.9%, 34.5%, 0%, 53.3%)
CIE-LABlab(31.97, -1.06, -28.00)
CIE-LCHlch(31.97, 28.02, 267.83°)
OKLaboklab(41.25% -0.0321 -0.0794)
OKLCHoklch(41.25% 0.086 248)
XYZxyz(6.6180, 7.0713, 18.4653)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E77 #77481F
analogous
#1F7774 #1F4E77 #1F2277
triadic
#1F4E77 #771F4E #4E771F
tetradic
#1F4E77 #741F77 #77481F #22771F
square
#1F4E77 #741F77 #77481F #22771F
split-complementary
#1F4E77 #771F22 #77741F
monochromatic
#061018 #122E46 #1F4E77 #2C6EA8 #438DCE

Accessibility & contrast

On white

8.70
#1F4E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1F4E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E77
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E77#FFFFFF#000000##FFFFFF
##1F4E771.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5079
Deuteranopia (green-blind)
#2F4776
Tritanopia (blue-blind)
#00585D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4e77;
/* rgb */ color: rgb(31, 78, 119);
/* oklch */ color: oklch(41.2% 0.086 248.0);
Tailwind
colors: {
  custom: {
    50: '#677f9e',
    500: '#1f4e77',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e77;
$custom-light: #677f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e77",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 119
  },
  "hsl": {
    "h": 207.955,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41246,
    "c": 0.08566,
    "h": 248
  },
  "luminance": 0.07072
}

Semantic roles & 50–950 ramp

primary
#1F4E77
secondary
#AB7647
accent
#8F46E2
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #1F4E77

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

Preview Lab → · Contrast checker → · Palette generator →

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