#1F5F9D#1F5F9D

#1F5F9D is a mid, moderate cyan. Relative luminance 0.109; OKLCH L 47.8% C 0.119 H 251.3°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#1F5F9D
RGBrgb(31, 95, 157)
HSLhsl(210, 67%, 37%)
HSVhsv(210, 80%, 62%)
CMYKcmyk(80.3%, 39.5%, 0%, 38.4%)
CIE-LABlab(39.43, 2.83, -39.36)
CIE-LCHlch(39.43, 39.46, 274.11°)
OKLaboklab(47.79% -0.038 -0.1124)
OKLCHoklch(47.79% 0.119 251.3)
XYZxyz(10.7408, 10.9088, 33.4313)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F9D #9D5D1F
analogous
#1F9D9C #1F5F9D #1F209D
triadic
#1F5F9D #9D1F5F #5F9D1F
tetradic
#1F5F9D #9C1F9D #9D5D1F #209D1F
square
#1F5F9D #9C1F9D #9D5D1F #209D1F
split-complementary
#1F5F9D #9D1F20 #9D9C1F
monochromatic
#0B2137 #15406A #1F5F9D #297ED0 #589CDE

Accessibility & contrast

On white

6.60
#1F5F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#1F5F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5F9D
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5F9D#FFFFFF#000000##FFFFFF
##1F5F9D1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4163A0
Deuteranopia (green-blind)
#2D589C
Tritanopia (blue-blind)
#006E76
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f5f9d;
/* rgb */ color: rgb(31, 95, 157);
/* oklch */ color: oklch(47.8% 0.119 251.3);
Tailwind
colors: {
  custom: {
    50: '#6f8cba',
    500: '#1f5f9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f9d;
$custom-light: #6f8cba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f9d",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 157
  },
  "hsl": {
    "h": 209.524,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47792,
    "c": 0.11864,
    "h": 251.3
  },
  "luminance": 0.1091
}

Semantic roles & 50–950 ramp

primary
#1F5F9D
secondary
#C28B56
accent
#933EEA
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#080C11
muted
#7B7D80

Preview Lab

Preview with #1F5F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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