#1F4E7F#1F4E7F

#1F4E7F is a dark, moderate cyan. Relative luminance 0.073; OKLCH L 41.7% C 0.097 H 252.0°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#1F4E7F
RGBrgb(31, 78, 127)
HSLhsl(211, 61%, 31%)
HSVhsv(211, 76%, 50%)
CMYKcmyk(75.6%, 38.6%, 0%, 50.2%)
CIE-LABlab(32.42, 2.07, -32.26)
CIE-LCHlch(32.42, 32.33, 273.67°)
OKLaboklab(41.74% -0.0298 -0.0919)
OKLCHoklch(41.74% 0.097 252)
XYZxyz(7.1188, 7.2716, 21.1029)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E7F #7F501F
analogous
#1F7E7F #1F4E7F #201F7F
triadic
#1F4E7F #7F1F4E #4E7F1F
tetradic
#1F4E7F #7F1F7E #7F501F #1F7F20
square
#1F4E7F #7F1F7E #7F501F #1F7F20
split-complementary
#1F4E7F #7F201F #7E7F1F
monochromatic
#07121D #13304E #1F4E7F #2B6CB0 #468BD2

Accessibility & contrast

On white

8.56
#1F4E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1F4E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E7F
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E7F#FFFFFF#000000##FFFFFF
##1F4E7F1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375181
Deuteranopia (green-blind)
#29487E
Tritanopia (blue-blind)
#005A60
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4e7f;
/* rgb */ color: rgb(31, 78, 127);
/* oklch */ color: oklch(41.7% 0.097 252.0);
Tailwind
colors: {
  custom: {
    50: '#687fa4',
    500: '#1f4e7f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e7f;
$custom-light: #687fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e7f",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 127
  },
  "hsl": {
    "h": 210.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.41744,
    "c": 0.09658,
    "h": 252
  },
  "luminance": 0.07272
}

Semantic roles & 50–950 ramp

primary
#1F4E7F
secondary
#B27E48
accent
#9644E4
background
#F6F7FA
surface
#EBEEF4
border
#C6C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F4E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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