#1F4E8C#1F4E8C

#1F4E8C is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.6% C 0.115 H 256.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#1F4E8C
RGBrgb(31, 78, 140)
HSLhsl(214, 64%, 34%)
HSVhsv(214, 78%, 55%)
CMYKcmyk(77.9%, 44.3%, 0%, 45.1%)
CIE-LABlab(33.21, 7.22, -39.01)
CIE-LCHlch(33.21, 39.68, 280.49°)
OKLaboklab(42.61% -0.0266 -0.1117)
OKLCHoklch(42.61% 0.115 256.6)
XYZxyz(8.0213, 7.6326, 25.8563)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E8C #8C5D1F
analogous
#1F848C #1F4E8C #261F8C
triadic
#1F4E8C #8C1F4E #4E8C1F
tetradic
#1F4E8C #8C1F84 #8C5D1F #1F8C26
square
#1F4E8C #8C1F84 #8C5D1F #1F8C26
split-complementary
#1F4E8C #8C261F #848C1F
monochromatic
#091628 #14325A #1F4E8C #2A6ABE #4E89D8

Accessibility & contrast

On white

8.31
#1F4E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4E8C
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E8C#FFFFFF#000000##FFFFFF
##1F4E8C1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538E
Deuteranopia (green-blind)
#1B498B
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4e8c;
/* rgb */ color: rgb(31, 78, 140);
/* oklch */ color: oklch(42.6% 0.115 256.6);
Tailwind
colors: {
  custom: {
    50: '#6b7fae',
    500: '#1f4e8c',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e8c;
$custom-light: #6b7fae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e8c",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 140
  },
  "hsl": {
    "h": 214.128,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42614,
    "c": 0.11481,
    "h": 256.6
  },
  "luminance": 0.07634
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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