#1F4871#1F4871

#1F4871 is a dark, moderate cyan. Relative luminance 0.061; OKLCH L 39.4% C 0.084 H 250.8°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#1F4871
RGBrgb(31, 72, 113)
HSLhsl(210, 57%, 28%)
HSVhsv(210, 73%, 44%)
CMYKcmyk(72.6%, 36.3%, 0%, 55.7%)
CIE-LABlab(29.71, 0.53, -27.80)
CIE-LCHlch(29.71, 27.81, 271.10°)
OKLaboklab(39.36% -0.0275 -0.0789)
OKLCHoklch(39.36% 0.084 250.8)
XYZxyz(5.8620, 6.1177, 16.4915)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4871 #71481F
analogous
#1F7171 #1F4871 #1F1F71
triadic
#1F4871 #711F48 #48711F
tetradic
#1F4871 #711F71 #71481F #1F711F
square
#1F4871 #711F71 #71481F #1F711F
split-complementary
#1F4871 #711F1F #71711F
monochromatic
#070F18 #122941 #1F4871 #2C67A1 #4085CB

Accessibility & contrast

On white

9.44
#1F4871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F4871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4871
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4871#FFFFFF#000000##FFFFFF
##1F48711.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364A73
Deuteranopia (green-blind)
#2A4270
Tritanopia (blue-blind)
#005257
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4871;
/* rgb */ color: rgb(31, 72, 113);
/* oklch */ color: oklch(39.4% 0.084 250.8);
Tailwind
colors: {
  custom: {
    50: '#657a9a',
    500: '#1f4871',
    950: '#000000',
  },
}
SCSS
$custom: #1f4871;
$custom-light: #657a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4871",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 113
  },
  "hsl": {
    "h": 210,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39361,
    "c": 0.08357,
    "h": 250.8
  },
  "luminance": 0.06118
}

Semantic roles & 50–950 ramp

primary
#1F4871
secondary
#A57647
accent
#9448E0
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06090E
muted
#7A7B7E

Preview Lab

Preview with #1F4871

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

Preview Lab → · Contrast checker → · Palette generator →

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