#1F4E7C#1F4E7C

#1F4E7C is a dark, moderate cyan. Relative luminance 0.072; OKLCH L 41.6% C 0.092 H 250.6°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#1F4E7C
RGBrgb(31, 78, 124)
HSLhsl(210, 60%, 30%)
HSVhsv(210, 75%, 49%)
CMYKcmyk(75%, 37.1%, 0%, 51.4%)
CIE-LABlab(32.25, 0.89, -30.67)
CIE-LCHlch(32.25, 30.69, 271.66°)
OKLaboklab(41.55% -0.0306 -0.0872)
OKLCHoklch(41.55% 0.092 250.6)
XYZxyz(6.9262, 7.1946, 20.0885)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E7C #7C4D1F
analogous
#1F7C7B #1F4E7C #1F207C
triadic
#1F4E7C #7C1F4E #4E7C1F
tetradic
#1F4E7C #7B1F7C #7C4D1F #207C1F
square
#1F4E7C #7B1F7C #7C4D1F #207C1F
split-complementary
#1F4E7C #7C1F20 #7C7B1F
monochromatic
#07101A #132F4B #1F4E7C #2B6DAD #458BD0

Accessibility & contrast

On white

8.61
#1F4E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#1F4E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E7C
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E7C#FFFFFF#000000##FFFFFF
##1F4E7C1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39517E
Deuteranopia (green-blind)
#2B487B
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4e7c;
/* rgb */ color: rgb(31, 78, 124);
/* oklch */ color: oklch(41.6% 0.092 250.6);
Tailwind
colors: {
  custom: {
    50: '#687fa2',
    500: '#1f4e7c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e7c;
$custom-light: #687fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e7c",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 124
  },
  "hsl": {
    "h": 209.677,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.41554,
    "c": 0.09244,
    "h": 250.6
  },
  "luminance": 0.07195
}

Semantic roles & 50–950 ramp

primary
#1F4E7C
secondary
#AF7B48
accent
#9345E3
background
#F6F7FA
surface
#EBEEF3
border
#C6C9CD
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F4E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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