#1F4E8D#1F4E8D

#1F4E8D is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.7% C 0.116 H 256.9°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#1F4E8D
RGBrgb(31, 78, 141)
HSLhsl(214, 64%, 34%)
HSVhsv(214, 78%, 55%)
CMYKcmyk(78%, 44.7%, 0%, 44.7%)
CIE-LABlab(33.27, 7.62, -39.52)
CIE-LCHlch(33.27, 40.25, 280.92°)
OKLaboklab(42.68% -0.0264 -0.1132)
OKLCHoklch(42.68% 0.116 256.9)
XYZxyz(8.0954, 7.6622, 26.2464)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E8D #8D5E1F
analogous
#1F858D #1F4E8D #271F8D
triadic
#1F4E8D #8D1F4E #4E8D1F
tetradic
#1F4E8D #8D1F85 #8D5E1F #1F8D27
square
#1F4E8D #8D1F85 #8D5E1F #1F8D27
split-complementary
#1F4E8D #8D271F #858D1F
monochromatic
#091629 #14325B #1F4E8D #2A6ABF #4E89D8

Accessibility & contrast

On white

8.29
#1F4E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#1F4E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E8D
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E8D#FFFFFF#000000##FFFFFF
##1F4E8D1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E548F
Deuteranopia (green-blind)
#194A8C
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4e8d;
/* rgb */ color: rgb(31, 78, 141);
/* oklch */ color: oklch(42.7% 0.116 256.9);
Tailwind
colors: {
  custom: {
    50: '#6c7faf',
    500: '#1f4e8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e8d;
$custom-light: #6c7faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e8d",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 141
  },
  "hsl": {
    "h": 214.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42684,
    "c": 0.11621,
    "h": 256.9
  },
  "luminance": 0.07663
}

Semantic roles & 50–950 ramp

primary
#1F4E8D
secondary
#BB8C4D
accent
#A041E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F4E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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