#1F4F7F#1F4F7F

#1F4F7F is a dark, moderate cyan. Relative luminance 0.074; OKLCH L 42.0% C 0.095 H 251.2°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#1F4F7F
RGBrgb(31, 79, 127)
HSLhsl(210, 61%, 31%)
HSVhsv(210, 76%, 50%)
CMYKcmyk(75.6%, 37.8%, 0%, 50.2%)
CIE-LABlab(32.73, 1.41, -31.76)
CIE-LCHlch(32.73, 31.79, 272.54°)
OKLaboklab(41.99% -0.0308 -0.0904)
OKLCHoklch(41.99% 0.095 251.2)
XYZxyz(7.1904, 7.4148, 21.1268)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F7F #7F4F1F
analogous
#1F7F7F #1F4F7F #1F1F7F
triadic
#1F4F7F #7F1F4F #4F7F1F
tetradic
#1F4F7F #7F1F7F #7F4F1F #1F7F1F
square
#1F4F7F #7F1F7F #7F4F1F #1F7F1F
split-complementary
#1F4F7F #7F1F1F #7F7F1F
monochromatic
#07121D #13304E #1F4F7F #2B6EB0 #468CD2

Accessibility & contrast

On white

8.46
#1F4F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#1F4F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F7F
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F7F#FFFFFF#000000##FFFFFF
##1F4F7F1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395281
Deuteranopia (green-blind)
#2B497E
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4f7f;
/* rgb */ color: rgb(31, 79, 127);
/* oklch */ color: oklch(42.0% 0.095 251.2);
Tailwind
colors: {
  custom: {
    50: '#6880a4',
    500: '#1f4f7f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f7f;
$custom-light: #6880a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f7f",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 127
  },
  "hsl": {
    "h": 210,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.41991,
    "c": 0.09549,
    "h": 251.2
  },
  "luminance": 0.07416
}

Semantic roles & 50–950 ramp

primary
#1F4F7F
secondary
#B27D48
accent
#9444E4
background
#F6F7FA
surface
#EBEEF4
border
#C6C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F4F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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