#1F4F79#1F4F79

#1F4F79 is a dark, moderate cyan. Relative luminance 0.073; OKLCH L 41.6% C 0.087 H 248.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#1F4F79
RGBrgb(31, 79, 121)
HSLhsl(208, 59%, 30%)
HSVhsv(208, 74%, 47%)
CMYKcmyk(74.4%, 34.7%, 0%, 52.5%)
CIE-LABlab(32.40, -0.93, -28.57)
CIE-LCHlch(32.40, 28.58, 268.13°)
OKLaboklab(41.62% -0.0326 -0.081)
OKLCHoklch(41.62% 0.087 248.1)
XYZxyz(6.8109, 7.2630, 19.1284)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F79 #79491F
analogous
#1F7976 #1F4F79 #1F2279
triadic
#1F4F79 #791F4F #4F791F
tetradic
#1F4F79 #761F79 #79491F #22791F
square
#1F4F79 #761F79 #79491F #22791F
split-complementary
#1F4F79 #791F22 #79761F
monochromatic
#061018 #132F48 #1F4F79 #2B6FAA #438ECF

Accessibility & contrast

On white

8.56
#1F4F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1F4F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F79
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F79#FFFFFF#000000##FFFFFF
##1F4F791.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C517B
Deuteranopia (green-blind)
#2F4878
Tritanopia (blue-blind)
#00595E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4f79;
/* rgb */ color: rgb(31, 79, 121);
/* oklch */ color: oklch(41.6% 0.087 248.1);
Tailwind
colors: {
  custom: {
    50: '#6780a0',
    500: '#1f4f79',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f79;
$custom-light: #6780a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f79",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 121
  },
  "hsl": {
    "h": 208,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41619,
    "c": 0.08734,
    "h": 248.1
  },
  "luminance": 0.07264
}

Semantic roles & 50–950 ramp

primary
#1F4F79
secondary
#AC7747
accent
#8F45E2
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #1F4F79

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

Preview Lab → · Contrast checker → · Palette generator →

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