#1F7CA8#1F7CA8

#1F7CA8 is a mid, moderate cyan. Relative luminance 0.175; OKLCH L 55.5% C 0.107 H 234.8°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#1F7CA8
RGBrgb(31, 124, 168)
HSLhsl(199, 69%, 39%)
HSVhsv(199, 82%, 66%)
CMYKcmyk(81.5%, 26.2%, 0%, 34.1%)
CIE-LABlab(48.92, -10.62, -30.87)
CIE-LCHlch(48.92, 32.65, 251.02°)
OKLaboklab(55.48% -0.0616 -0.0872)
OKLCHoklch(55.48% 0.107 234.8)
XYZxyz(14.8378, 17.5319, 39.6402)
Luminance0.1753 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7CA8 #A84B1F
analogous
#1FA890 #1F7CA8 #1F38A8
triadic
#1F7CA8 #A81F7C #7CA81F
tetradic
#1F7CA8 #901FA8 #A84B1F #38A81F
square
#1F7CA8 #901FA8 #A84B1F #38A81F
split-complementary
#1F7CA8 #A81F38 #A8901F
monochromatic
#0C3041 #155674 #1F7CA8 #2CA1D8 #60B8E2

Accessibility & contrast

On white

4.66
#1F7CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#1F7CA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7CA8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7CA8#FFFFFF#000000##FFFFFF
##1F7CA81.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#667BAA
Deuteranopia (green-blind)
#546FA7
Tritanopia (blue-blind)
#00888B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f7ca8;
/* rgb */ color: rgb(31, 124, 168);
/* oklch */ color: oklch(55.5% 0.107 234.8);
Tailwind
colors: {
  custom: {
    50: '#72a1c2',
    500: '#1f7ca8',
    950: '#000000',
  },
}
SCSS
$custom: #1f7ca8;
$custom-light: #72a1c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7ca8",
  "rgb": {
    "r": 31,
    "g": 124,
    "b": 168
  },
  "hsl": {
    "h": 199.27,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5548,
    "c": 0.10672,
    "h": 234.8
  },
  "luminance": 0.17534
}

Semantic roles & 50–950 ramp

primary
#1F7CA8
secondary
#C67F5D
accent
#753CEC
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090F12
muted
#7B7E81

Preview Lab

Preview with #1F7CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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