#1F5996#1F5996

#1F5996 is a mid, moderate cyan. Relative luminance 0.096; OKLCH L 45.9% C 0.116 H 252.7°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#1F5996
RGBrgb(31, 89, 150)
HSLhsl(211, 66%, 35%)
HSVhsv(211, 79%, 59%)
CMYKcmyk(79.3%, 40.7%, 0%, 41.2%)
CIE-LABlab(37.18, 3.94, -38.74)
CIE-LCHlch(37.18, 38.94, 275.81°)
OKLaboklab(45.91% -0.0344 -0.1106)
OKLCHoklch(45.91% 0.116 252.7)
XYZxyz(9.6404, 9.6369, 30.2003)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5996 #965C1F
analogous
#1F9496 #1F5996 #201F96
triadic
#1F5996 #961F59 #59961F
tetradic
#1F5996 #961F94 #965C1F #1F9620
square
#1F5996 #961F94 #965C1F #1F9620
split-complementary
#1F5996 #96201F #94961F
monochromatic
#0A1D31 #153B63 #1F5996 #2977C9 #5496DC

Accessibility & contrast

On white

7.17
#1F5996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#1F5996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5996
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5996#FFFFFF#000000##FFFFFF
##1F59961.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5D98
Deuteranopia (green-blind)
#285395
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f5996;
/* rgb */ color: rgb(31, 89, 150);
/* oklch */ color: oklch(45.9% 0.116 252.7);
Tailwind
colors: {
  custom: {
    50: '#6d87b5',
    500: '#1f5996',
    950: '#000000',
  },
}
SCSS
$custom: #1f5996;
$custom-light: #6d87b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5996",
  "rgb": {
    "r": 31,
    "g": 89,
    "b": 150
  },
  "hsl": {
    "h": 210.756,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45906,
    "c": 0.11586,
    "h": 252.7
  },
  "luminance": 0.09638
}

Semantic roles & 50–950 ramp

primary
#1F5996
secondary
#BF8A52
accent
#963FE9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1F5996

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

Preview Lab → · Contrast checker → · Palette generator →

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