#1F517F#1F517F

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

Color values

HEX#1F517F
RGBrgb(31, 81, 127)
HSLhsl(209, 61%, 31%)
HSVhsv(209, 76%, 50%)
CMYKcmyk(75.6%, 36.2%, 0%, 50.2%)
CIE-LABlab(33.37, 0.11, -30.76)
CIE-LCHlch(33.37, 30.76, 270.20°)
OKLaboklab(42.49% -0.0328 -0.0874)
OKLCHoklch(42.49% 0.093 249.4)
XYZxyz(7.3368, 7.7076, 21.1756)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F517F #7F4D1F
analogous
#1F7F7D #1F517F #1F217F
triadic
#1F517F #7F1F51 #517F1F
tetradic
#1F517F #7D1F7F #7F4D1F #217F1F
square
#1F517F #7D1F7F #7F4D1F #217F1F
split-complementary
#1F517F #7F1F21 #7F7D1F
monochromatic
#07121D #13324E #1F517F #2B70B0 #468FD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F517F#FFFFFF#000000##FFFFFF
##1F517F1.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)
#3C5381
Deuteranopia (green-blind)
#2E4A7E
Tritanopia (blue-blind)
#005C62
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f517f;
/* rgb */ color: rgb(31, 81, 127);
/* oklch */ color: oklch(42.5% 0.093 249.4);
Tailwind
colors: {
  custom: {
    50: '#6881a4',
    500: '#1f517f',
    950: '#000000',
  },
}
SCSS
$custom: #1f517f;
$custom-light: #6881a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f517f",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 127
  },
  "hsl": {
    "h": 208.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42488,
    "c": 0.09338,
    "h": 249.4
  },
  "luminance": 0.07708
}

Semantic roles & 50–950 ramp

primary
#1F517F
secondary
#B27B48
accent
#9144E4
background
#F6F7FA
surface
#EBEEF4
border
#C6C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F517F

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

Preview Lab → · Contrast checker → · Palette generator →

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