#1F4F71#1F4F71

#1F4F71 is a dark, moderate cyan. Relative luminance 0.071; OKLCH L 41.1% C 0.077 H 242.8°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#1F4F71
RGBrgb(31, 79, 113)
HSLhsl(205, 57%, 28%)
HSVhsv(205, 73%, 44%)
CMYKcmyk(72.6%, 30.1%, 0%, 55.7%)
CIE-LABlab(31.98, -4.01, -24.23)
CIE-LCHlch(31.98, 24.56, 260.60°)
OKLaboklab(41.15% -0.0352 -0.0684)
OKLCHoklch(41.15% 0.077 242.8)
XYZxyz(6.3406, 7.0748, 16.6510)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F71 #71411F
analogous
#1F716A #1F4F71 #1F2671
triadic
#1F4F71 #711F4F #4F711F
tetradic
#1F4F71 #6A1F71 #71411F #26711F
square
#1F4F71 #6A1F71 #71411F #26711F
split-complementary
#1F4F71 #711F26 #716A1F
monochromatic
#071118 #122D41 #1F4F71 #2C71A1 #4091CB

Accessibility & contrast

On white

8.69
#1F4F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#1F4F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F71
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F71#FFFFFF#000000##FFFFFF
##1F4F711.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405073
Deuteranopia (green-blind)
#344870
Tritanopia (blue-blind)
#00575B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4f71;
/* rgb */ color: rgb(31, 79, 113);
/* oklch */ color: oklch(41.1% 0.077 242.8);
Tailwind
colors: {
  custom: {
    50: '#66809a',
    500: '#1f4f71',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f71;
$custom-light: #66809a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f71",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 113
  },
  "hsl": {
    "h": 204.878,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41148,
    "c": 0.07695,
    "h": 242.8
  },
  "luminance": 0.07076
}

Semantic roles & 50–950 ramp

primary
#1F4F71
secondary
#A56E47
accent
#8748E0
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#060A0E
muted
#7A7C7E

Preview Lab

Preview with #1F4F71

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

Preview Lab → · Contrast checker → · Palette generator →

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