#1F5B8B#1F5B8B

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

Color values

HEX#1F5B8B
RGBrgb(31, 91, 139)
HSLhsl(207, 64%, 33%)
HSVhsv(207, 78%, 55%)
CMYKcmyk(77.7%, 34.5%, 0%, 45.5%)
CIE-LABlab(37.18, -1.64, -32.08)
CIE-LCHlch(37.18, 32.12, 267.08°)
OKLaboklab(45.7% -0.0393 -0.0911)
OKLCHoklch(45.7% 0.099 246.7)
XYZxyz(8.9646, 9.6365, 25.8087)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5B8B #8B4F1F
analogous
#1F8B85 #1F5B8B #1F258B
triadic
#1F5B8B #8B1F5B #5B8B1F
tetradic
#1F5B8B #851F8B #8B4F1F #258B1F
square
#1F5B8B #851F8B #8B4F1F #258B1F
split-complementary
#1F5B8B #8B1F25 #8B851F
monochromatic
#091927 #143A59 #1F5B8B #2A7CBD #4D9AD7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F5B8B#FFFFFF#000000##FFFFFF
##1F5B8B1.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)
#455D8D
Deuteranopia (green-blind)
#35538A
Tritanopia (blue-blind)
#00676C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f5b8b;
/* rgb */ color: rgb(31, 91, 139);
/* oklch */ color: oklch(45.7% 0.099 246.7);
Tailwind
colors: {
  custom: {
    50: '#6b89ad',
    500: '#1f5b8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f5b8b;
$custom-light: #6b89ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5b8b",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 139
  },
  "hsl": {
    "h": 206.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45703,
    "c": 0.09924,
    "h": 246.7
  },
  "luminance": 0.09638
}

Semantic roles & 50–950 ramp

primary
#1F5B8B
secondary
#BA7D4C
accent
#8B41E7
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#080B10
muted
#7A7C7F

Preview Lab

Preview with #1F5B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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