#1F7E9B#1F7E9B

#1F7E9B is a mid, moderate cyan. Relative luminance 0.176; OKLCH L 55.3% C 0.094 H 223.6°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#1F7E9B
RGBrgb(31, 126, 155)
HSLhsl(194, 67%, 36%)
HSVhsv(194, 80%, 61%)
CMYKcmyk(80%, 18.7%, 0%, 39.2%)
CIE-LABlab(48.98, -16.41, -23.20)
CIE-LCHlch(48.98, 28.42, 234.73°)
OKLaboklab(55.34% -0.0684 -0.065)
OKLCHoklch(55.34% 0.094 223.6)
XYZxyz(13.9399, 17.5779, 33.6622)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E9B #9B3C1F
analogous
#1F9B7A #1F7E9B #1F409B
triadic
#1F7E9B #9B1F7E #7E9B1F
tetradic
#1F7E9B #7A1F9B #9B3C1F #409B1F
square
#1F7E9B #7A1F9B #9B3C1F #409B1F
split-complementary
#1F7E9B #9B1F40 #9B7A1F
monochromatic
#0B2B35 #155568 #1F7E9B #29A7CE #57BEDD

Accessibility & contrast

On white

4.65
#1F7E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#1F7E9B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E9B
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E9B#FFFFFF#000000##FFFFFF
##1F7E9B1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E7B9C
Deuteranopia (green-blind)
#5D6F9B
Tritanopia (blue-blind)
#008787
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f7e9b;
/* rgb */ color: rgb(31, 126, 155);
/* oklch */ color: oklch(55.3% 0.094 223.6);
Tailwind
colors: {
  custom: {
    50: '#70a3b8',
    500: '#1f7e9b',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e9b;
$custom-light: #70a3b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e9b",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 155
  },
  "hsl": {
    "h": 194.032,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.55338,
    "c": 0.09437,
    "h": 223.6
  },
  "luminance": 0.1758
}

Semantic roles & 50–950 ramp

primary
#1F7E9B
secondary
#C16E55
accent
#663EEA
background
#F7FAFB
surface
#EDF3F6
border
#C8CDD0
text
#090F11
muted
#7B7F80

Preview Lab

Preview with #1F7E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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