#1F4C7D#1F4C7D

#1F4C7D is a dark, moderate cyan. Relative luminance 0.069; OKLCH L 41.1% C 0.096 H 252.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#1F4C7D
RGBrgb(31, 76, 125)
HSLhsl(211, 60%, 31%)
HSVhsv(211, 75%, 49%)
CMYKcmyk(75.2%, 39.2%, 0%, 51%)
CIE-LABlab(31.67, 2.60, -32.21)
CIE-LCHlch(31.67, 32.31, 274.61°)
OKLaboklab(41.12% -0.0283 -0.0917)
OKLCHoklch(41.12% 0.096 252.9)
XYZxyz(6.8498, 6.9401, 20.3766)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C7D #7D501F
analogous
#1F7B7D #1F4C7D #211F7D
triadic
#1F4C7D #7D1F4C #4C7D1F
tetradic
#1F4C7D #7D1F7B #7D501F #1F7D21
square
#1F4C7D #7D1F7B #7D501F #1F7D21
split-complementary
#1F4C7D #7D211F #7B7D1F
monochromatic
#07101B #132E4C #1F4C7D #2B6AAE #4588D1

Accessibility & contrast

On white

8.79
#1F4C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#1F4C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C7D
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C7D#FFFFFF#000000##FFFFFF
##1F4C7D1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354F7F
Deuteranopia (green-blind)
#27477C
Tritanopia (blue-blind)
#00585E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4c7d;
/* rgb */ color: rgb(31, 76, 125);
/* oklch */ color: oklch(41.1% 0.096 252.9);
Tailwind
colors: {
  custom: {
    50: '#687da3',
    500: '#1f4c7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c7d;
$custom-light: #687da3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c7d",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 125
  },
  "hsl": {
    "h": 211.277,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41122,
    "c": 0.09601,
    "h": 252.9
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#1F4C7D
secondary
#B07E48
accent
#9744E3
background
#F6F7FA
surface
#EBEEF3
border
#C6C9CD
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F4C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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