#1F7FA7#1F7FA7

#1F7FA7 is a mid, moderate cyan. Relative luminance 0.183; OKLCH L 56.2% C 0.104 H 231.5°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#1F7FA7
RGBrgb(31, 127, 167)
HSLhsl(198, 69%, 39%)
HSVhsv(198, 81%, 65%)
CMYKcmyk(81.4%, 24%, 0%, 34.5%)
CIE-LABlab(49.81, -12.69, -28.91)
CIE-LCHlch(49.81, 31.58, 246.30°)
OKLaboklab(56.17% -0.0648 -0.0815)
OKLCHoklch(56.17% 0.104 231.5)
XYZxyz(15.1267, 18.2582, 39.2787)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7FA7 #A7471F
analogous
#1FA78B #1F7FA7 #1F3BA7
triadic
#1F7FA7 #A71F7F #7FA71F
tetradic
#1F7FA7 #8B1FA7 #A7471F #3BA71F
square
#1F7FA7 #8B1FA7 #A7471F #3BA71F
split-complementary
#1F7FA7 #A71F3B #A78B1F
monochromatic
#0C3040 #155873 #1F7FA7 #2BA5D8 #5FBBE1

Accessibility & contrast

On white

4.51
#1F7FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#1F7FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F7FA7
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7FA7#FFFFFF#000000##000000
##1F7FA71.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B7DA9
Deuteranopia (green-blind)
#5971A6
Tritanopia (blue-blind)
#008A8C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f7fa7;
/* rgb */ color: rgb(31, 127, 167);
/* oklch */ color: oklch(56.2% 0.104 231.5);
Tailwind
colors: {
  custom: {
    50: '#72a4c1',
    500: '#1f7fa7',
    950: '#000000',
  },
}
SCSS
$custom: #1f7fa7;
$custom-light: #72a4c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7fa7",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 167
  },
  "hsl": {
    "h": 197.647,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.56171,
    "c": 0.10409,
    "h": 231.5
  },
  "luminance": 0.1826
}

Semantic roles & 50–950 ramp

primary
#1F7FA7
secondary
#C67B5C
accent
#703CEC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#090F12
muted
#7B7F81

Preview Lab

Preview with #1F7FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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