#1F517D#1F517D

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

Color values

HEX#1F517D
RGBrgb(31, 81, 125)
HSLhsl(208, 60%, 31%)
HSVhsv(208, 75%, 49%)
CMYKcmyk(75.2%, 35.2%, 0%, 51%)
CIE-LABlab(33.26, -0.67, -29.70)
CIE-LCHlch(33.26, 29.71, 268.70°)
OKLaboklab(42.37% -0.0334 -0.0843)
OKLCHoklch(42.37% 0.091 248.4)
XYZxyz(7.2078, 7.6560, 20.4960)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F517D #7D4B1F
analogous
#1F7D7A #1F517D #1F227D
triadic
#1F517D #7D1F51 #517D1F
tetradic
#1F517D #7A1F7D #7D4B1F #227D1F
square
#1F517D #7A1F7D #7D4B1F #227D1F
split-complementary
#1F517D #7D1F22 #7D7A1F
monochromatic
#07111B #13314C #1F517D #2B71AE #4590D1

Accessibility & contrast

On white

8.30
#1F517D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#1F517D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F517D
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F517D#FFFFFF#000000##FFFFFF
##1F517D1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D537F
Deuteranopia (green-blind)
#304A7C
Tritanopia (blue-blind)
#005B61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f517d;
/* rgb */ color: rgb(31, 81, 125);
/* oklch */ color: oklch(42.4% 0.091 248.4);
Tailwind
colors: {
  custom: {
    50: '#6881a3',
    500: '#1f517d',
    950: '#000000',
  },
}
SCSS
$custom: #1f517d;
$custom-light: #6881a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f517d",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 125
  },
  "hsl": {
    "h": 208.085,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42365,
    "c": 0.0907,
    "h": 248.4
  },
  "luminance": 0.07657
}

Semantic roles & 50–950 ramp

primary
#1F517D
secondary
#B07948
accent
#8F44E3
background
#F6F7FA
surface
#EBEEF3
border
#C6C9CD
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F517D

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

Preview Lab → · Contrast checker → · Palette generator →

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