#1F5BA7#1F5BA7

#1F5BA7 is a mid, vivid cyan. Relative luminance 0.106; OKLCH L 47.5% C 0.137 H 256.3°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#1F5BA7
RGBrgb(31, 91, 167)
HSLhsl(214, 69%, 39%)
HSVhsv(214, 81%, 65%)
CMYKcmyk(81.4%, 45.5%, 0%, 34.5%)
CIE-LABlab(38.83, 9.35, -46.27)
CIE-LCHlch(38.83, 47.20, 281.43°)
OKLaboklab(47.53% -0.0323 -0.1327)
OKLCHoklch(47.53% 0.137 256.3)
XYZxyz(11.2786, 10.5621, 37.9960)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5BA7 #A76B1F
analogous
#1F9FA7 #1F5BA7 #271FA7
triadic
#1F5BA7 #A71F5B #5BA71F
tetradic
#1F5BA7 #A71F9F #A76B1F #1FA727
square
#1F5BA7 #A71F9F #A76B1F #1FA727
split-complementary
#1F5BA7 #A7271F #9FA71F
monochromatic
#0C2340 #153F73 #1F5BA7 #2B77D8 #5F99E1

Accessibility & contrast

On white

6.75
#1F5BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#1F5BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5BA7
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5BA7#FFFFFF#000000##FFFFFF
##1F5BA71.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362AA
Deuteranopia (green-blind)
#1456A5
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f5ba7;
/* rgb */ color: rgb(31, 91, 167);
/* oklch */ color: oklch(47.5% 0.137 256.3);
Tailwind
colors: {
  custom: {
    50: '#7188c2',
    500: '#1f5ba7',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ba7;
$custom-light: #7188c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ba7",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 167
  },
  "hsl": {
    "h": 213.529,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.47527,
    "c": 0.13663,
    "h": 256.3
  },
  "luminance": 0.10563
}

Semantic roles & 50–950 ramp

primary
#1F5BA7
secondary
#C6975C
accent
#9E3CEC
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #1F5BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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