#1F5B8A#1F5B8A

#1F5B8A is a mid, moderate cyan. Relative luminance 0.096; OKLCH L 45.6% C 0.098 H 246.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#1F5B8A
RGBrgb(31, 91, 138)
HSLhsl(206, 63%, 33%)
HSVhsv(206, 78%, 54%)
CMYKcmyk(77.5%, 34.1%, 0%, 45.9%)
CIE-LABlab(37.13, -2.02, -31.56)
CIE-LCHlch(37.13, 31.62, 266.33°)
OKLaboklab(45.64% -0.0396 -0.0896)
OKLCHoklch(45.64% 0.098 246.2)
XYZxyz(8.8918, 9.6074, 25.4256)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5B8A #8A4E1F
analogous
#1F8A83 #1F5B8A #1F258A
triadic
#1F5B8A #8A1F5B #5B8A1F
tetradic
#1F5B8A #831F8A #8A4E1F #258A1F
square
#1F5B8A #831F8A #8A4E1F #258A1F
split-complementary
#1F5B8A #8A1F25 #8A831F
monochromatic
#091926 #143A58 #1F5B8A #2A7CBC #4C9AD7

Accessibility & contrast

On white

7.19
#1F5B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#1F5B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5B8A
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5B8A#FFFFFF#000000##FFFFFF
##1F5B8A1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455D8C
Deuteranopia (green-blind)
#365389
Tritanopia (blue-blind)
#00666C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1f5b8a;
/* rgb */ color: rgb(31, 91, 138);
/* oklch */ color: oklch(45.6% 0.098 246.2);
Tailwind
colors: {
  custom: {
    50: '#6b89ac',
    500: '#1f5b8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f5b8a;
$custom-light: #6b89ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5b8a",
  "rgb": {
    "r": 31,
    "g": 91,
    "b": 138
  },
  "hsl": {
    "h": 206.355,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45643,
    "c": 0.09796,
    "h": 246.2
  },
  "luminance": 0.09608
}

Semantic roles & 50–950 ramp

primary
#1F5B8A
secondary
#BA7C4B
accent
#8A41E6
background
#F6F8FA
surface
#ECEFF4
border
#C7CACE
text
#080B10
muted
#7A7C7F

Preview Lab

Preview with #1F5B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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