#1F4F8D#1F4F8D

#1F4F8D is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.9% C 0.115 H 256.3°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#1F4F8D
RGBrgb(31, 79, 141)
HSLhsl(214, 64%, 34%)
HSVhsv(214, 78%, 55%)
CMYKcmyk(78%, 44%, 0%, 44.7%)
CIE-LABlab(33.57, 6.95, -39.04)
CIE-LCHlch(33.57, 39.65, 280.10°)
OKLaboklab(42.92% -0.0273 -0.1117)
OKLCHoklch(42.92% 0.115 256.3)
XYZxyz(8.1670, 7.8054, 26.2703)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F8D #8D5D1F
analogous
#1F868D #1F4F8D #261F8D
triadic
#1F4F8D #8D1F4F #4F8D1F
tetradic
#1F4F8D #8D1F86 #8D5D1F #1F8D26
square
#1F4F8D #8D1F86 #8D5D1F #1F8D26
split-complementary
#1F4F8D #8D261F #868D1F
monochromatic
#091729 #14335B #1F4F8D #2A6BBF #4E8AD8

Accessibility & contrast

On white

8.20
#1F4F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#1F4F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F8D
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F8D#FFFFFF#000000##FFFFFF
##1F4F8D1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30548F
Deuteranopia (green-blind)
#1C4A8C
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4f8d;
/* rgb */ color: rgb(31, 79, 141);
/* oklch */ color: oklch(42.9% 0.115 256.3);
Tailwind
colors: {
  custom: {
    50: '#6b7faf',
    500: '#1f4f8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f8d;
$custom-light: #6b7faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f8d",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 141
  },
  "hsl": {
    "h": 213.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4292,
    "c": 0.11501,
    "h": 256.3
  },
  "luminance": 0.07806
}

Semantic roles & 50–950 ramp

primary
#1F4F8D
secondary
#BB8B4D
accent
#9E41E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F4F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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