#1F517A#1F517A

#1F517A is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.2% C 0.087 H 246.7°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#1F517A
RGBrgb(31, 81, 122)
HSLhsl(207, 59%, 30%)
HSVhsv(207, 75%, 48%)
CMYKcmyk(74.6%, 33.6%, 0%, 52.2%)
CIE-LABlab(33.09, -1.84, -28.09)
CIE-LCHlch(33.09, 28.15, 266.26°)
OKLaboklab(42.18% -0.0344 -0.0796)
OKLCHoklch(42.18% 0.087 246.7)
XYZxyz(7.0190, 7.5805, 19.5018)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F517A #7A481F
analogous
#1F7A75 #1F517A #1F247A
triadic
#1F517A #7A1F51 #517A1F
tetradic
#1F517A #751F7A #7A481F #247A1F
square
#1F517A #751F7A #7A481F #247A1F
split-complementary
#1F517A #7A1F24 #7A751F
monochromatic
#061018 #133149 #1F517A #2B71AB #4491CF

Accessibility & contrast

On white

8.35
#1F517A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#1F517A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F517A
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F517A#FFFFFF#000000##FFFFFF
##1F517A1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537C
Deuteranopia (green-blind)
#324A79
Tritanopia (blue-blind)
#005B60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f517a;
/* rgb */ color: rgb(31, 81, 122);
/* oklch */ color: oklch(42.2% 0.087 246.7);
Tailwind
colors: {
  custom: {
    50: '#6781a0',
    500: '#1f517a',
    950: '#000000',
  },
}
SCSS
$custom: #1f517a;
$custom-light: #6781a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f517a",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 122
  },
  "hsl": {
    "h": 207.033,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.42184,
    "c": 0.08673,
    "h": 246.7
  },
  "luminance": 0.07581
}

Semantic roles & 50–950 ramp

primary
#1F517A
secondary
#AD7547
accent
#8C45E3
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#070A0F
muted
#7A7C7E

Preview Lab

Preview with #1F517A

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

Preview Lab → · Contrast checker → · Palette generator →

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