#1F81A6#1F81A6

#1F81A6 is a mid, moderate cyan. Relative luminance 0.187; OKLCH L 56.6% C 0.102 H 229.0°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#1F81A6
RGBrgb(31, 129, 166)
HSLhsl(196, 69%, 39%)
HSVhsv(196, 81%, 65%)
CMYKcmyk(81.3%, 22.3%, 0%, 34.9%)
CIE-LABlab(50.39, -14.18, -27.43)
CIE-LCHlch(50.39, 30.88, 242.67°)
OKLaboklab(56.62% -0.0671 -0.0772)
OKLCHoklch(56.62% 0.102 229)
XYZxyz(15.2954, 18.7431, 38.8806)
Luminance0.1875 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F81A6 #A6441F
analogous
#1FA687 #1F81A6 #1F3EA6
triadic
#1F81A6 #A61F81 #81A61F
tetradic
#1F81A6 #871FA6 #A6441F #3EA61F
square
#1F81A6 #871FA6 #A6441F #3EA61F
split-complementary
#1F81A6 #A61F3E #A6871F
monochromatic
#0C313F #155972 #1F81A6 #2BA8D7 #5EBDE1

Accessibility & contrast

On white

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

On black

4.75
#1F81A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F81A6
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F81A6#FFFFFF#000000##000000
##1F81A61.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E7FA8
Deuteranopia (green-blind)
#5C72A5
Tritanopia (blue-blind)
#008B8D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f81a6;
/* rgb */ color: rgb(31, 129, 166);
/* oklch */ color: oklch(56.6% 0.102 229.0);
Tailwind
colors: {
  custom: {
    50: '#72a5c0',
    500: '#1f81a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f81a6;
$custom-light: #72a5c0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f81a6",
  "rgb": {
    "r": 31,
    "g": 129,
    "b": 166
  },
  "hsl": {
    "h": 196.444,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.56618,
    "c": 0.10226,
    "h": 229
  },
  "luminance": 0.18745
}

Semantic roles & 50–950 ramp

primary
#1F81A6
secondary
#C5785B
accent
#6C3CEB
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#090F12
muted
#7B7F81

Preview Lab

Preview with #1F81A6

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

Preview Lab → · Contrast checker → · Palette generator →

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