#1F81A7#1F81A7

#1F81A7 is a mid, moderate cyan. Relative luminance 0.188; OKLCH L 56.7% C 0.103 H 229.7°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#1F81A7
RGBrgb(31, 129, 167)
HSLhsl(197, 69%, 39%)
HSVhsv(197, 81%, 65%)
CMYKcmyk(81.4%, 22.8%, 0%, 34.5%)
CIE-LABlab(50.43, -13.82, -27.95)
CIE-LCHlch(50.43, 31.18, 243.68°)
OKLaboklab(56.67% -0.0667 -0.0787)
OKLCHoklch(56.67% 0.103 229.7)
XYZxyz(15.3875, 18.7799, 39.3656)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F81A7 #A7451F
analogous
#1FA789 #1F81A7 #1F3DA7
triadic
#1F81A7 #A71F81 #81A71F
tetradic
#1F81A7 #891FA7 #A7451F #3DA71F
square
#1F81A7 #891FA7 #A7451F #3DA71F
split-complementary
#1F81A7 #A71F3D #A7891F
monochromatic
#0C3140 #155973 #1F81A7 #2BA8D8 #5FBDE1

Accessibility & contrast

On white

4.42
#1F81A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#1F81A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F81A7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F81A7#FFFFFF#000000##000000
##1F81A71.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D7FA9
Deuteranopia (green-blind)
#5C72A6
Tritanopia (blue-blind)
#008C8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f81a7;
/* rgb */ color: rgb(31, 129, 167);
/* oklch */ color: oklch(56.7% 0.103 229.7);
Tailwind
colors: {
  custom: {
    50: '#72a5c1',
    500: '#1f81a7',
    950: '#000000',
  },
}
SCSS
$custom: #1f81a7;
$custom-light: #72a5c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f81a7",
  "rgb": {
    "r": 31,
    "g": 129,
    "b": 167
  },
  "hsl": {
    "h": 196.765,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.56667,
    "c": 0.10313,
    "h": 229.7
  },
  "luminance": 0.18782
}

Semantic roles & 50–950 ramp

primary
#1F81A7
secondary
#C67A5C
accent
#6D3CEC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#090F12
muted
#7B7F81

Preview Lab

Preview with #1F81A7

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

Preview Lab → · Contrast checker → · Palette generator →

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