#1F517E#1F517E

#1F517E is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.4% C 0.092 H 248.9°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#1F517E
RGBrgb(31, 81, 126)
HSLhsl(208, 61%, 31%)
HSVhsv(208, 75%, 49%)
CMYKcmyk(75.4%, 35.7%, 0%, 50.6%)
CIE-LABlab(33.31, -0.28, -30.23)
CIE-LCHlch(33.31, 30.23, 269.46°)
OKLaboklab(42.43% -0.0331 -0.0859)
OKLCHoklch(42.43% 0.092 248.9)
XYZxyz(7.2720, 7.6817, 20.8341)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F517E #7E4C1F
analogous
#1F7E7B #1F517E #1F217E
triadic
#1F517E #7E1F51 #517E1F
tetradic
#1F517E #7B1F7E #7E4C1F #217E1F
square
#1F517E #7B1F7E #7E4C1F #217E1F
split-complementary
#1F517E #7E1F21 #7E7B1F
monochromatic
#07121C #13314D #1F517E #2B71AF #468FD1

Accessibility & contrast

On white

8.28
#1F517E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F517E
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F517E#FFFFFF#000000##FFFFFF
##1F517E1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5380
Deuteranopia (green-blind)
#2F4A7D
Tritanopia (blue-blind)
#005C61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f517e;
/* rgb */ color: rgb(31, 81, 126);
/* oklch */ color: oklch(42.4% 0.092 248.9);
Tailwind
colors: {
  custom: {
    50: '#6881a3',
    500: '#1f517e',
    950: '#000000',
  },
}
SCSS
$custom: #1f517e;
$custom-light: #6881a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f517e",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 126
  },
  "hsl": {
    "h": 208.421,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42426,
    "c": 0.09204,
    "h": 248.9
  },
  "luminance": 0.07683
}

Semantic roles & 50–950 ramp

primary
#1F517E
secondary
#B17A48
accent
#9044E4
background
#F6F7FA
surface
#EBEEF4
border
#C6C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F517E

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

Preview Lab → · Contrast checker → · Palette generator →

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