#1F5F7D#1F5F7D

#1F5F7D is a mid, moderate cyan. Relative luminance 0.100; OKLCH L 45.9% C 0.080 H 232.9°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#1F5F7D
RGBrgb(31, 95, 125)
HSLhsl(199, 60%, 31%)
HSVhsv(199, 75%, 49%)
CMYKcmyk(75.2%, 24%, 0%, 51%)
CIE-LABlab(37.76, -9.39, -22.64)
CIE-LCHlch(37.76, 24.51, 247.46°)
OKLaboklab(45.93% -0.0482 -0.0636)
OKLCHoklch(45.93% 0.08 232.9)
XYZxyz(8.3575, 9.9554, 20.8792)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F7D #7D3D1F
analogous
#1F7D6C #1F5F7D #1F307D
triadic
#1F5F7D #7D1F5F #5F7D1F
tetradic
#1F5F7D #6C1F7D #7D3D1F #307D1F
square
#1F5F7D #6C1F7D #7D3D1F #307D1F
split-complementary
#1F5F7D #7D1F30 #7D6C1F
monochromatic
#07141B #133A4C #1F5F7D #2B84AE #45A4D1

Accessibility & contrast

On white

7.02
#1F5F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#1F5F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5F7D
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5F7D#FFFFFF#000000##FFFFFF
##1F5F7D1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505E7E
Deuteranopia (green-blind)
#43557D
Tritanopia (blue-blind)
#006769
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #1f5f7d;
/* rgb */ color: rgb(31, 95, 125);
/* oklch */ color: oklch(45.9% 0.080 232.9);
Tailwind
colors: {
  custom: {
    50: '#698ca2',
    500: '#1f5f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f7d;
$custom-light: #698ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f7d",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 125
  },
  "hsl": {
    "h": 199.149,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.45933,
    "c": 0.07985,
    "h": 232.9
  },
  "luminance": 0.09956
}

Semantic roles & 50–950 ramp

primary
#1F5F7D
secondary
#B06948
accent
#7744E3
background
#F6F8FA
surface
#EBF0F3
border
#C6CBCD
text
#070C0F
muted
#7A7D7F

Preview Lab

Preview with #1F5F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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