#1F4E80#1F4E80

#1F4E80 is a dark, moderate cyan. Relative luminance 0.073; OKLCH L 41.8% C 0.098 H 252.5°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#1F4E80
RGBrgb(31, 78, 128)
HSLhsl(211, 61%, 31%)
HSVhsv(211, 76%, 50%)
CMYKcmyk(75.8%, 39.1%, 0%, 49.8%)
CIE-LABlab(32.48, 2.46, -32.79)
CIE-LCHlch(32.48, 32.88, 274.29°)
OKLaboklab(41.81% -0.0295 -0.0934)
OKLCHoklch(41.81% 0.098 252.5)
XYZxyz(7.1843, 7.2978, 21.4479)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E80 #80511F
analogous
#1F7E80 #1F4E80 #201F80
triadic
#1F4E80 #801F4E #4E801F
tetradic
#1F4E80 #801F7E #80511F #1F8020
square
#1F4E80 #801F7E #80511F #1F8020
split-complementary
#1F4E80 #80201F #7E801F
monochromatic
#07121D #13304F #1F4E80 #2B6CB1 #478BD2

Accessibility & contrast

On white

8.54
#1F4E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#1F4E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E80
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E80#FFFFFF#000000##FFFFFF
##1F4E801.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375182
Deuteranopia (green-blind)
#28487F
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4e80;
/* rgb */ color: rgb(31, 78, 128);
/* oklch */ color: oklch(41.8% 0.098 252.5);
Tailwind
colors: {
  custom: {
    50: '#697fa5',
    500: '#1f4e80',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e80;
$custom-light: #697fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e80",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 128
  },
  "hsl": {
    "h": 210.928,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41809,
    "c": 0.09796,
    "h": 252.5
  },
  "luminance": 0.07299
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4E80

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

Preview Lab → · Contrast checker → · Palette generator →

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