#1F4F8E#1F4F8E

#1F4F8E is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 43.0% C 0.116 H 256.5°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#1F4F8E
RGBrgb(31, 79, 142)
HSLhsl(214, 64%, 34%)
HSVhsv(214, 78%, 56%)
CMYKcmyk(78.2%, 44.4%, 0%, 44.3%)
CIE-LABlab(33.64, 7.35, -39.55)
CIE-LCHlch(33.64, 40.22, 280.53°)
OKLaboklab(42.99% -0.0271 -0.1132)
OKLCHoklch(42.99% 0.116 256.5)
XYZxyz(8.2417, 7.8353, 26.6639)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F8E #8E5E1F
analogous
#1F878E #1F4F8E #271F8E
triadic
#1F4F8E #8E1F4F #4F8E1F
tetradic
#1F4F8E #8E1F87 #8E5E1F #1F8E27
square
#1F4F8E #8E1F87 #8E5E1F #1F8E27
split-complementary
#1F4F8E #8E271F #878E1F
monochromatic
#09172A #14335C #1F4F8E #2A6BC0 #4F8AD9

Accessibility & contrast

On white

8.18
#1F4F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#1F4F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F8E
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F8E#FFFFFF#000000##FFFFFF
##1F4F8E1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5590
Deuteranopia (green-blind)
#1B4A8D
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4f8e;
/* rgb */ color: rgb(31, 79, 142);
/* oklch */ color: oklch(43.0% 0.116 256.5);
Tailwind
colors: {
  custom: {
    50: '#6c7faf',
    500: '#1f4f8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f8e;
$custom-light: #6c7faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f8e",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 142
  },
  "hsl": {
    "h": 214.054,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4299,
    "c": 0.11642,
    "h": 256.5
  },
  "luminance": 0.07836
}

Semantic roles & 50–950 ramp

primary
#1F4F8E
secondary
#BB8C4D
accent
#9F41E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F4F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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