#1F517C#1F517C

#1F517C is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.3% C 0.089 H 247.8°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#1F517C
RGBrgb(31, 81, 124)
HSLhsl(208, 60%, 30%)
HSVhsv(208, 75%, 49%)
CMYKcmyk(75%, 34.7%, 0%, 51.4%)
CIE-LABlab(33.20, -1.06, -29.16)
CIE-LCHlch(33.20, 29.18, 267.91°)
OKLaboklab(42.3% -0.0337 -0.0827)
OKLCHoklch(42.3% 0.089 247.8)
XYZxyz(7.1442, 7.6306, 20.1612)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F517C #7C4A1F
analogous
#1F7C78 #1F517C #1F227C
triadic
#1F517C #7C1F51 #517C1F
tetradic
#1F517C #781F7C #7C4A1F #227C1F
square
#1F517C #781F7C #7C4A1F #227C1F
split-complementary
#1F517C #7C1F22 #7C781F
monochromatic
#07111A #13314B #1F517C #2B71AD #4590D0

Accessibility & contrast

On white

8.31
#1F517C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F517C
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F517C#FFFFFF#000000##FFFFFF
##1F517C1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D537E
Deuteranopia (green-blind)
#304A7B
Tritanopia (blue-blind)
#005B60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f517c;
/* rgb */ color: rgb(31, 81, 124);
/* oklch */ color: oklch(42.3% 0.089 247.8);
Tailwind
colors: {
  custom: {
    50: '#6881a2',
    500: '#1f517c',
    950: '#000000',
  },
}
SCSS
$custom: #1f517c;
$custom-light: #6881a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f517c",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 124
  },
  "hsl": {
    "h": 207.742,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42304,
    "c": 0.08937,
    "h": 247.8
  },
  "luminance": 0.07631
}

Semantic roles & 50–950 ramp

primary
#1F517C
secondary
#AF7748
accent
#8E45E3
background
#F6F7FA
surface
#EBEEF3
border
#C6C9CD
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F517C

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

Preview Lab → · Contrast checker → · Palette generator →

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