#1F81A8#1F81A8

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

Color values

HEX#1F81A8
RGBrgb(31, 129, 168)
HSLhsl(197, 69%, 39%)
HSVhsv(197, 82%, 66%)
CMYKcmyk(81.5%, 23.2%, 0%, 34.1%)
CIE-LABlab(50.47, -13.46, -28.46)
CIE-LCHlch(50.47, 31.48, 244.68°)
OKLaboklab(56.72% -0.0663 -0.0801)
OKLCHoklch(56.72% 0.104 230.4)
XYZxyz(15.4803, 18.8170, 39.8544)
Luminance0.1882 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F81A8 #A8461F
analogous
#1FA88B #1F81A8 #1F3DA8
triadic
#1F81A8 #A81F81 #81A81F
tetradic
#1F81A8 #8B1FA8 #A8461F #3DA81F
square
#1F81A8 #8B1FA8 #A8461F #3DA81F
split-complementary
#1F81A8 #A81F3D #A88B1F
monochromatic
#0C3241 #155974 #1F81A8 #2CA7D8 #60BDE2

Accessibility & contrast

On white

4.41
#1F81A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F81A8#FFFFFF#000000##000000
##1F81A81.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f81a8;
/* rgb */ color: rgb(31, 129, 168);
/* oklch */ color: oklch(56.7% 0.104 230.4);
Tailwind
colors: {
  custom: {
    50: '#72a5c2',
    500: '#1f81a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f81a8;
$custom-light: #72a5c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f81a8",
  "rgb": {
    "r": 31,
    "g": 129,
    "b": 168
  },
  "hsl": {
    "h": 197.08,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.56716,
    "c": 0.10403,
    "h": 230.4
  },
  "luminance": 0.18819
}

Semantic roles & 50–950 ramp

primary
#1F81A8
secondary
#C67B5D
accent
#6E3CEC
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#090F12
muted
#7B7F81

Preview Lab

Preview with #1F81A8

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

Preview Lab → · Contrast checker → · Palette generator →

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