#1F507E#1F507E

#1F507E is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.2% C 0.093 H 249.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#1F507E
RGBrgb(31, 80, 126)
HSLhsl(209, 61%, 31%)
HSVhsv(209, 75%, 49%)
CMYKcmyk(75.4%, 36.5%, 0%, 50.6%)
CIE-LABlab(32.99, 0.36, -30.73)
CIE-LCHlch(32.99, 30.73, 270.68°)
OKLaboklab(42.18% -0.0321 -0.0873)
OKLCHoklch(42.18% 0.093 249.8)
XYZxyz(7.1982, 7.5342, 20.8095)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F507E #7E4D1F
analogous
#1F7E7C #1F507E #1F207E
triadic
#1F507E #7E1F50 #507E1F
tetradic
#1F507E #7C1F7E #7E4D1F #207E1F
square
#1F507E #7C1F7E #7E4D1F #207E1F
split-complementary
#1F507E #7E1F20 #7E7C1F
monochromatic
#07121C #13314D #1F507E #2B6FAF #468ED1

Accessibility & contrast

On white

8.38
#1F507E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#1F507E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F507E
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F507E#FFFFFF#000000##FFFFFF
##1F507E1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5280
Deuteranopia (green-blind)
#2D4A7D
Tritanopia (blue-blind)
#005B61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f507e;
/* rgb */ color: rgb(31, 80, 126);
/* oklch */ color: oklch(42.2% 0.093 249.8);
Tailwind
colors: {
  custom: {
    50: '#6880a3',
    500: '#1f507e',
    950: '#000000',
  },
}
SCSS
$custom: #1f507e;
$custom-light: #6880a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f507e",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 126
  },
  "hsl": {
    "h": 209.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42177,
    "c": 0.09306,
    "h": 249.8
  },
  "luminance": 0.07535
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F507E

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

Preview Lab → · Contrast checker → · Palette generator →

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