#1F4E8A#1F4E8A

#1F4E8A is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.5% C 0.112 H 256.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#1F4E8A
RGBrgb(31, 78, 138)
HSLhsl(214, 63%, 33%)
HSVhsv(214, 78%, 54%)
CMYKcmyk(77.5%, 43.5%, 0%, 45.9%)
CIE-LABlab(33.08, 6.43, -37.99)
CIE-LCHlch(33.08, 38.53, 279.60°)
OKLaboklab(42.48% -0.0271 -0.1087)
OKLCHoklch(42.48% 0.112 256)
XYZxyz(7.8752, 7.5742, 25.0867)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E8A #8A5B1F
analogous
#1F838A #1F4E8A #251F8A
triadic
#1F4E8A #8A1F4E #4E8A1F
tetradic
#1F4E8A #8A1F83 #8A5B1F #1F8A25
square
#1F4E8A #8A1F83 #8A5B1F #1F8A25
split-complementary
#1F4E8A #8A251F #838A1F
monochromatic
#091626 #143258 #1F4E8A #2A6ABC #4C89D7

Accessibility & contrast

On white

8.35
#1F4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#1F4E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E8A
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E8A#FFFFFF#000000##FFFFFF
##1F4E8A1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31538C
Deuteranopia (green-blind)
#1E4989
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4e8a;
/* rgb */ color: rgb(31, 78, 138);
/* oklch */ color: oklch(42.5% 0.112 256.0);
Tailwind
colors: {
  custom: {
    50: '#6b7fac',
    500: '#1f4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e8a;
$custom-light: #6b7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e8a",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 213.645,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42476,
    "c": 0.11199,
    "h": 256
  },
  "luminance": 0.07575
}

Semantic roles & 50–950 ramp

primary
#1F4E8A
secondary
#BA894B
accent
#9E41E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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