#1F5B8D#1F5B8D

#1F5B8D is a mid, moderate cyan. Relative luminance 0.097; OKLCH L 45.8% C 0.102 H 247.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#1F5B8D
RGBrgb(31, 91, 141)
HSLhsl(207, 64%, 34%)
HSVhsv(207, 78%, 55%)
CMYKcmyk(78%, 35.5%, 0%, 44.7%)
CIE-LABlab(37.29, -0.86, -33.12)
CIE-LCHlch(37.29, 33.14, 268.51°)
OKLaboklab(45.82% -0.0387 -0.0942)
OKLCHoklch(45.82% 0.102 247.7)
XYZxyz(9.1120, 9.6955, 26.5853)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5B8D #8D511F
analogous
#1F8D88 #1F5B8D #1F248D
triadic
#1F5B8D #8D1F5B #5B8D1F
tetradic
#1F5B8D #881F8D #8D511F #248D1F
square
#1F5B8D #881F8D #8D511F #248D1F
split-complementary
#1F5B8D #8D1F24 #8D881F
monochromatic
#091A29 #143B5B #1F5B8D #2A7BBF #4E99D8

Accessibility & contrast

On white

7.14
#1F5B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#1F5B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5B8D
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5B8D#FFFFFF#000000##FFFFFF
##1F5B8D1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445D8F
Deuteranopia (green-blind)
#34538C
Tritanopia (blue-blind)
#00676D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #1f5b8d;
/* rgb */ color: rgb(31, 91, 141);
/* oklch */ color: oklch(45.8% 0.102 247.7);
Tailwind
colors: {
  custom: {
    50: '#6b89ae',
    500: '#1f5b8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f5b8d;
$custom-light: #6b89ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5b8d",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 141
  },
  "hsl": {
    "h": 207.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45823,
    "c": 0.10181,
    "h": 247.7
  },
  "luminance": 0.09697
}

Semantic roles & 50–950 ramp

primary
#1F5B8D
secondary
#BB7F4D
accent
#8C41E7
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#080B10
muted
#7A7C7F

Preview Lab

Preview with #1F5B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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