#1F5F8D#1F5F8D

#1F5F8D is a mid, moderate cyan. Relative luminance 0.104; OKLCH L 46.8% C 0.098 H 244.2°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#1F5F8D
RGBrgb(31, 95, 141)
HSLhsl(205, 64%, 34%)
HSVhsv(205, 78%, 55%)
CMYKcmyk(78%, 32.6%, 0%, 44.7%)
CIE-LABlab(38.55, -3.38, -31.14)
CIE-LCHlch(38.55, 31.32, 263.81°)
OKLaboklab(46.81% -0.0426 -0.0883)
OKLCHoklch(46.81% 0.098 244.2)
XYZxyz(9.4631, 10.3977, 26.7024)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F8D #8D4D1F
analogous
#1F8D84 #1F5F8D #1F288D
triadic
#1F5F8D #8D1F5F #5F8D1F
tetradic
#1F5F8D #841F8D #8D4D1F #288D1F
square
#1F5F8D #841F8D #8D4D1F #288D1F
split-complementary
#1F5F8D #8D1F28 #8D841F
monochromatic
#091B29 #143D5B #1F5F8D #2A81BF #4E9ED8

Accessibility & contrast

On white

6.82
#1F5F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#1F5F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5F8D
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5F8D#FFFFFF#000000##FFFFFF
##1F5F8D1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A608F
Deuteranopia (green-blind)
#3A568C
Tritanopia (blue-blind)
#006A6F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f5f8d;
/* rgb */ color: rgb(31, 95, 141);
/* oklch */ color: oklch(46.8% 0.098 244.2);
Tailwind
colors: {
  custom: {
    50: '#6c8cae',
    500: '#1f5f8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f8d;
$custom-light: #6c8cae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f8d",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 141
  },
  "hsl": {
    "h": 205.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46814,
    "c": 0.09807,
    "h": 244.2
  },
  "luminance": 0.10399
}

Semantic roles & 50–950 ramp

primary
#1F5F8D
secondary
#BB7B4D
accent
#8641E7
background
#F6F8FA
surface
#ECF0F4
border
#C7CBCE
text
#080C10
muted
#7A7D7F

Preview Lab

Preview with #1F5F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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