#1F5F8E#1F5F8E

#1F5F8E is a mid, moderate cyan. Relative luminance 0.104; OKLCH L 46.9% C 0.099 H 244.8°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#1F5F8E
RGBrgb(31, 95, 142)
HSLhsl(205, 64%, 34%)
HSVhsv(205, 78%, 56%)
CMYKcmyk(78.2%, 33.1%, 0%, 44.3%)
CIE-LABlab(38.60, -2.99, -31.66)
CIE-LCHlch(38.60, 31.80, 264.60°)
OKLaboklab(46.87% -0.0423 -0.0898)
OKLCHoklch(46.87% 0.099 244.8)
XYZxyz(9.5379, 10.4276, 27.0960)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F8E #8E4E1F
analogous
#1F8E86 #1F5F8E #1F288E
triadic
#1F5F8E #8E1F5F #5F8E1F
tetradic
#1F5F8E #861F8E #8E4E1F #288E1F
square
#1F5F8E #861F8E #8E4E1F #288E1F
split-complementary
#1F5F8E #8E1F28 #8E861F
monochromatic
#091C2A #143D5C #1F5F8E #2A81C0 #4F9ED9

Accessibility & contrast

On white

6.81
#1F5F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#1F5F8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5F8E
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5F8E#FFFFFF#000000##FFFFFF
##1F5F8E1.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496190
Deuteranopia (green-blind)
#3A568D
Tritanopia (blue-blind)
#006A70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #1f5f8e;
/* rgb */ color: rgb(31, 95, 142);
/* oklch */ color: oklch(46.9% 0.099 244.8);
Tailwind
colors: {
  custom: {
    50: '#6c8caf',
    500: '#1f5f8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f8e;
$custom-light: #6c8caf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f8e",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 142
  },
  "hsl": {
    "h": 205.405,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46872,
    "c": 0.0993,
    "h": 244.8
  },
  "luminance": 0.10429
}

Semantic roles & 50–950 ramp

primary
#1F5F8E
secondary
#BB7C4D
accent
#8741E7
background
#F6F8FA
surface
#ECF0F4
border
#C7CBCE
text
#080C10
muted
#7A7D7F

Preview Lab

Preview with #1F5F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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