#1F5186#1F5186

#1F5186 is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 42.9% C 0.103 H 252.5°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#1F5186
RGBrgb(31, 81, 134)
HSLhsl(211, 62%, 32%)
HSVhsv(211, 77%, 53%)
CMYKcmyk(76.9%, 39.6%, 0%, 47.5%)
CIE-LABlab(33.77, 2.85, -34.44)
CIE-LCHlch(33.77, 34.56, 274.74°)
OKLaboklab(42.93% -0.0309 -0.0982)
OKLCHoklch(42.93% 0.103 252.5)
XYZxyz(7.8090, 7.8965, 23.6623)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5186 #86541F
analogous
#1F8486 #1F5186 #211F86
triadic
#1F5186 #861F51 #51861F
tetradic
#1F5186 #861F84 #86541F #1F8621
square
#1F5186 #861F84 #86541F #1F8621
split-complementary
#1F5186 #86211F #84861F
monochromatic
#081523 #143354 #1F5186 #2A6FB8 #4A8ED5

Accessibility & contrast

On white

8.14
#1F5186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#1F5186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5186
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5186#FFFFFF#000000##FFFFFF
##1F51861.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385588
Deuteranopia (green-blind)
#284B85
Tritanopia (blue-blind)
#005E65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f5186;
/* rgb */ color: rgb(31, 81, 134);
/* oklch */ color: oklch(42.9% 0.103 252.5);
Tailwind
colors: {
  custom: {
    50: '#6a81a9',
    500: '#1f5186',
    950: '#000000',
  },
}
SCSS
$custom: #1f5186;
$custom-light: #6a81a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5186",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 134
  },
  "hsl": {
    "h": 210.874,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42932,
    "c": 0.10293,
    "h": 252.5
  },
  "luminance": 0.07897
}

Semantic roles & 50–950 ramp

primary
#1F5186
secondary
#B88249
accent
#9642E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F5186

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

Preview Lab → · Contrast checker → · Palette generator →

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