#1F7AA1#1F7AA1

#1F7AA1 is a mid, moderate cyan. Relative luminance 0.168; OKLCH L 54.6% C 0.101 H 232.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#1F7AA1
RGBrgb(31, 122, 161)
HSLhsl(198, 68%, 38%)
HSVhsv(198, 81%, 63%)
CMYKcmyk(80.7%, 24.2%, 0%, 36.9%)
CIE-LABlab(47.98, -12.02, -28.25)
CIE-LCHlch(47.98, 30.70, 246.96°)
OKLaboklab(54.63% -0.0622 -0.0796)
OKLCHoklch(54.63% 0.101 232)
XYZxyz(13.9550, 16.7819, 36.2150)
Luminance0.1678 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7AA1 #A1461F
analogous
#1FA187 #1F7AA1 #1F39A1
triadic
#1F7AA1 #A11F7A #7AA11F
tetradic
#1F7AA1 #871FA1 #A1461F #39A11F
square
#1F7AA1 #871FA1 #A1461F #39A11F
split-complementary
#1F7AA1 #A11F39 #A1871F
monochromatic
#0B2C3A #15536E #1F7AA1 #29A1D4 #5BB8DF

Accessibility & contrast

On white

4.82
#1F7AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#1F7AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7AA1
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7AA1#FFFFFF#000000##FFFFFF
##1F7AA11.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6679A3
Deuteranopia (green-blind)
#556DA0
Tritanopia (blue-blind)
#008587
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #1f7aa1;
/* rgb */ color: rgb(31, 122, 161);
/* oklch */ color: oklch(54.6% 0.101 232.0);
Tailwind
colors: {
  custom: {
    50: '#71a0bd',
    500: '#1f7aa1',
    950: '#000000',
  },
}
SCSS
$custom: #1f7aa1;
$custom-light: #71a0bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7aa1",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 161
  },
  "hsl": {
    "h": 198,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.54626,
    "c": 0.10101,
    "h": 232
  },
  "luminance": 0.16784
}

Semantic roles & 50–950 ramp

primary
#1F7AA1
secondary
#C47858
accent
#713DEB
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #1F7AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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