#1F4E8F#1F4E8F

#1F4E8F is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.8% C 0.119 H 257.4°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#1F4E8F
RGBrgb(31, 78, 143)
HSLhsl(215, 64%, 34%)
HSVhsv(215, 78%, 56%)
CMYKcmyk(78.3%, 45.5%, 0%, 43.9%)
CIE-LABlab(33.40, 8.42, -40.54)
CIE-LCHlch(33.40, 41.41, 281.73°)
OKLaboklab(42.83% -0.026 -0.1162)
OKLCHoklch(42.83% 0.119 257.4)
XYZxyz(8.2456, 7.7223, 27.0373)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E8F #8F601F
analogous
#1F868F #1F4E8F #281F8F
triadic
#1F4E8F #8F1F4E #4E8F1F
tetradic
#1F4E8F #8F1F86 #8F601F #1F8F28
square
#1F4E8F #8F1F86 #8F601F #1F8F28
split-complementary
#1F4E8F #8F281F #868F1F
monochromatic
#09172A #14335D #1F4E8F #2A69C1 #4F89D9

Accessibility & contrast

On white

8.25
#1F4E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#1F4E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E8F
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E8F#FFFFFF#000000##FFFFFF
##1F4E8F1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5491
Deuteranopia (green-blind)
#164A8E
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4e8f;
/* rgb */ color: rgb(31, 78, 143);
/* oklch */ color: oklch(42.8% 0.119 257.4);
Tailwind
colors: {
  custom: {
    50: '#6c7fb0',
    500: '#1f4e8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e8f;
$custom-light: #6c7fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e8f",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 143
  },
  "hsl": {
    "h": 214.821,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42825,
    "c": 0.11903,
    "h": 257.4
  },
  "luminance": 0.07723
}

Semantic roles & 50–950 ramp

primary
#1F4E8F
secondary
#BC8E4E
accent
#A140E7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #1F4E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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