#1F507F#1F507F

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

Color values

HEX#1F507F
RGBrgb(31, 80, 127)
HSLhsl(209, 61%, 31%)
HSVhsv(209, 76%, 50%)
CMYKcmyk(75.6%, 37%, 0%, 50.2%)
CIE-LABlab(33.05, 0.76, -31.26)
CIE-LCHlch(33.05, 31.27, 271.39°)
OKLaboklab(42.24% -0.0318 -0.0889)
OKLCHoklch(42.24% 0.094 250.3)
XYZxyz(7.2631, 7.5601, 21.1510)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F507F #7F4E1F
analogous
#1F7F7E #1F507F #1F207F
triadic
#1F507F #7F1F50 #507F1F
tetradic
#1F507F #7E1F7F #7F4E1F #207F1F
square
#1F507F #7E1F7F #7F4E1F #207F1F
split-complementary
#1F507F #7F1F20 #7F7E1F
monochromatic
#07121D #13314E #1F507F #2B6FB0 #468ED2

Accessibility & contrast

On white

8.36
#1F507F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F507F
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F507F#FFFFFF#000000##FFFFFF
##1F507F1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f507f;
/* rgb */ color: rgb(31, 80, 127);
/* oklch */ color: oklch(42.2% 0.094 250.3);
Tailwind
colors: {
  custom: {
    50: '#6880a4',
    500: '#1f507f',
    950: '#000000',
  },
}
SCSS
$custom: #1f507f;
$custom-light: #6880a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f507f",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 127
  },
  "hsl": {
    "h": 209.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42239,
    "c": 0.09442,
    "h": 250.3
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#1F507F
secondary
#B27C48
accent
#9244E4
background
#F6F7FA
surface
#EBEEF4
border
#C6C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F507F

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

Preview Lab → · Contrast checker → · Palette generator →

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