#1F4F8F#1F4F8F

#1F4F8F is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 43.1% C 0.118 H 256.8°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#1F4F8F
RGBrgb(31, 79, 143)
HSLhsl(214, 64%, 34%)
HSVhsv(214, 78%, 56%)
CMYKcmyk(78.3%, 44.8%, 0%, 43.9%)
CIE-LABlab(33.70, 7.75, -40.05)
CIE-LCHlch(33.70, 40.80, 280.95°)
OKLaboklab(43.06% -0.0269 -0.1147)
OKLCHoklch(43.06% 0.118 256.8)
XYZxyz(8.3172, 7.8655, 27.0611)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F8F #8F5F1F
analogous
#1F878F #1F4F8F #271F8F
triadic
#1F4F8F #8F1F4F #4F8F1F
tetradic
#1F4F8F #8F1F87 #8F5F1F #1F8F27
square
#1F4F8F #8F1F87 #8F5F1F #1F8F27
split-complementary
#1F4F8F #8F271F #878F1F
monochromatic
#09172A #14335D #1F4F8F #2A6BC1 #4F8AD9

Accessibility & contrast

On white

8.16
#1F4F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#1F4F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F8F
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F8F#FFFFFF#000000##FFFFFF
##1F4F8F1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5591
Deuteranopia (green-blind)
#194B8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4f8f;
/* rgb */ color: rgb(31, 79, 143);
/* oklch */ color: oklch(43.1% 0.118 256.8);
Tailwind
colors: {
  custom: {
    50: '#6c7fb0',
    500: '#1f4f8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f8f;
$custom-light: #6c7fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f8f",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 143
  },
  "hsl": {
    "h": 214.286,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.43059,
    "c": 0.11782,
    "h": 256.8
  },
  "luminance": 0.07866
}

Semantic roles & 50–950 ramp

primary
#1F4F8F
secondary
#BC8D4E
accent
#A040E7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #1F4F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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