#1F4E7E#1F4E7E

#1F4E7E is a dark, moderate cyan. Relative luminance 0.072; OKLCH L 41.7% C 0.095 H 251.6°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#1F4E7E
RGBrgb(31, 78, 126)
HSLhsl(210, 61%, 31%)
HSVhsv(210, 75%, 49%)
CMYKcmyk(75.4%, 38.1%, 0%, 50.6%)
CIE-LABlab(32.36, 1.67, -31.74)
CIE-LCHlch(32.36, 31.78, 273.02°)
OKLaboklab(41.68% -0.0301 -0.0903)
OKLCHoklch(41.68% 0.095 251.6)
XYZxyz(7.0539, 7.2457, 20.7614)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E7E #7E4F1F
analogous
#1F7D7E #1F4E7E #1F1F7E
triadic
#1F4E7E #7E1F4E #4E7E1F
tetradic
#1F4E7E #7E1F7D #7E4F1F #1F7E1F
square
#1F4E7E #7E1F7D #7E4F1F #1F7E1F
split-complementary
#1F4E7E #7E1F1F #7D7E1F
monochromatic
#07111C #13304D #1F4E7E #2B6CAF #468BD1

Accessibility & contrast

On white

8.57
#1F4E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4E7E
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E7E#FFFFFF#000000##FFFFFF
##1F4E7E1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385180
Deuteranopia (green-blind)
#2A487D
Tritanopia (blue-blind)
#005960
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4e7e;
/* rgb */ color: rgb(31, 78, 126);
/* oklch */ color: oklch(41.7% 0.095 251.6);
Tailwind
colors: {
  custom: {
    50: '#687fa3',
    500: '#1f4e7e',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e7e;
$custom-light: #687fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e7e",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 126
  },
  "hsl": {
    "h": 210.316,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4168,
    "c": 0.09519,
    "h": 251.6
  },
  "luminance": 0.07246
}

Semantic roles & 50–950 ramp

primary
#1F4E7E
secondary
#B17D48
accent
#9544E4
background
#F6F7FA
surface
#EBEEF4
border
#C6C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F4E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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