#1F5F8B#1F5F8B

#1F5F8B is a mid, moderate cyan. Relative luminance 0.103; OKLCH L 46.7% C 0.096 H 243.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#1F5F8B
RGBrgb(31, 95, 139)
HSLhsl(204, 64%, 33%)
HSVhsv(204, 78%, 55%)
CMYKcmyk(77.7%, 31.7%, 0%, 45.5%)
CIE-LABlab(38.44, -4.14, -30.09)
CIE-LCHlch(38.44, 30.38, 262.17°)
OKLaboklab(46.7% -0.0433 -0.0853)
OKLCHoklch(46.7% 0.096 243.1)
XYZxyz(9.3157, 10.3387, 25.9257)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5F8B #8B4B1F
analogous
#1F8B81 #1F5F8B #1F298B
triadic
#1F5F8B #8B1F5F #5F8B1F
tetradic
#1F5F8B #811F8B #8B4B1F #298B1F
square
#1F5F8B #811F8B #8B4B1F #298B1F
split-complementary
#1F5F8B #8B1F29 #8B811F
monochromatic
#091B27 #143D59 #1F5F8B #2A81BD #4D9FD7

Accessibility & contrast

On white

6.84
#1F5F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#1F5F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5F8B
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5F8B#FFFFFF#000000##FFFFFF
##1F5F8B1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B608D
Deuteranopia (green-blind)
#3C568A
Tritanopia (blue-blind)
#006A6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f5f8b;
/* rgb */ color: rgb(31, 95, 139);
/* oklch */ color: oklch(46.7% 0.096 243.1);
Tailwind
colors: {
  custom: {
    50: '#6b8cad',
    500: '#1f5f8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f5f8b;
$custom-light: #6b8cad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5f8b",
  "rgb": {
    "r": 31,
    "g": 95,
    "b": 139
  },
  "hsl": {
    "h": 204.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.46698,
    "c": 0.09562,
    "h": 243.1
  },
  "luminance": 0.1034
}

Semantic roles & 50–950 ramp

primary
#1F5F8B
secondary
#BA794C
accent
#8541E7
background
#F6F8FA
surface
#ECF0F4
border
#C7CBCE
text
#080C10
muted
#7A7D7F

Preview Lab

Preview with #1F5F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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