#1F4E78#1F4E78

#1F4E78 is a dark, moderate cyan. Relative luminance 0.071; OKLCH L 41.3% C 0.087 H 248.5°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#1F4E78
RGBrgb(31, 78, 120)
HSLhsl(208, 59%, 30%)
HSVhsv(208, 74%, 47%)
CMYKcmyk(74.2%, 35%, 0%, 52.9%)
CIE-LABlab(32.02, -0.67, -28.54)
CIE-LCHlch(32.02, 28.54, 268.65°)
OKLaboklab(41.31% -0.0318 -0.081)
OKLCHoklch(41.31% 0.087 248.5)
XYZxyz(6.6783, 7.0954, 18.7832)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E78 #78491F
analogous
#1F7876 #1F4E78 #1F2178
triadic
#1F4E78 #781F4E #4E781F
tetradic
#1F4E78 #761F78 #78491F #21781F
square
#1F4E78 #761F78 #78491F #21781F
split-complementary
#1F4E78 #781F21 #78761F
monochromatic
#061018 #122E47 #1F4E78 #2C6EA9 #438DCE

Accessibility & contrast

On white

8.68
#1F4E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#1F4E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E78
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E78#FFFFFF#000000##FFFFFF
##1F4E781.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B507A
Deuteranopia (green-blind)
#2E4877
Tritanopia (blue-blind)
#00585D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4e78;
/* rgb */ color: rgb(31, 78, 120);
/* oklch */ color: oklch(41.3% 0.087 248.5);
Tailwind
colors: {
  custom: {
    50: '#677f9f',
    500: '#1f4e78',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e78;
$custom-light: #677f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e78",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 120
  },
  "hsl": {
    "h": 208.315,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41306,
    "c": 0.087,
    "h": 248.5
  },
  "luminance": 0.07096
}

Semantic roles & 50–950 ramp

primary
#1F4E78
secondary
#AB7747
accent
#9046E2
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#070A0E
muted
#7A7C7E

Preview Lab

Preview with #1F4E78

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

Preview Lab → · Contrast checker → · Palette generator →

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