#1F5F8A#1F5F8A

#1F5F8A is a mid, moderate cyan. Relative luminance 0.103; OKLCH L 46.6% C 0.094 H 242.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#1F5F8A
RGBrgb(31, 95, 138)
HSLhsl(204, 63%, 33%)
HSVhsv(204, 78%, 54%)
CMYKcmyk(77.5%, 31.2%, 0%, 45.9%)
CIE-LABlab(38.39, -4.52, -29.57)
CIE-LCHlch(38.39, 29.91, 261.31°)
OKLaboklab(46.64% -0.0436 -0.0837)
OKLCHoklch(46.64% 0.094 242.5)
XYZxyz(9.2429, 10.3096, 25.5426)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F8A #8A4A1F
analogous
#1F8A7F #1F5F8A #1F298A
triadic
#1F5F8A #8A1F5F #5F8A1F
tetradic
#1F5F8A #7F1F8A #8A4A1F #298A1F
square
#1F5F8A #7F1F8A #8A4A1F #298A1F
split-complementary
#1F5F8A #8A1F29 #8A7F1F
monochromatic
#091A26 #143D58 #1F5F8A #2A81BC #4C9FD7

Accessibility & contrast

On white

6.86
#1F5F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#1F5F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5F8A
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5F8A#FFFFFF#000000##FFFFFF
##1F5F8A1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B608C
Deuteranopia (green-blind)
#3C5689
Tritanopia (blue-blind)
#006A6E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f5f8a;
/* rgb */ color: rgb(31, 95, 138);
/* oklch */ color: oklch(46.6% 0.094 242.5);
Tailwind
colors: {
  custom: {
    50: '#6b8cac',
    500: '#1f5f8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f8a;
$custom-light: #6b8cac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f8a",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 138
  },
  "hsl": {
    "h": 204.112,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.46641,
    "c": 0.09441,
    "h": 242.5
  },
  "luminance": 0.10311
}

Semantic roles & 50–950 ramp

primary
#1F5F8A
secondary
#BA784B
accent
#8441E6
background
#F6F8FA
surface
#ECF0F4
border
#C7CBCE
text
#080C10
muted
#7A7D7F

Preview Lab

Preview with #1F5F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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