#1F4E86#1F4E86

#1F4E86 is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.2% C 0.106 H 254.7°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#1F4E86
RGBrgb(31, 78, 134)
HSLhsl(213, 62%, 32%)
HSVhsv(213, 77%, 53%)
CMYKcmyk(76.9%, 41.8%, 0%, 47.5%)
CIE-LABlab(32.83, 4.83, -35.93)
CIE-LCHlch(32.83, 36.25, 277.66°)
OKLaboklab(42.2% -0.028 -0.1026)
OKLCHoklch(42.2% 0.106 254.7)
XYZxyz(7.5909, 7.4605, 23.5896)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E86 #86571F
analogous
#1F8286 #1F4E86 #231F86
triadic
#1F4E86 #861F4E #4E861F
tetradic
#1F4E86 #861F82 #86571F #1F8623
square
#1F4E86 #861F82 #86571F #1F8623
split-complementary
#1F4E86 #86231F #82861F
monochromatic
#081423 #143154 #1F4E86 #2A6BB8 #4A8AD5

Accessibility & contrast

On white

8.43
#1F4E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#1F4E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E86
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E86#FFFFFF#000000##FFFFFF
##1F4E861.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335288
Deuteranopia (green-blind)
#224985
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4e86;
/* rgb */ color: rgb(31, 78, 134);
/* oklch */ color: oklch(42.2% 0.106 254.7);
Tailwind
colors: {
  custom: {
    50: '#6a7fa9',
    500: '#1f4e86',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e86;
$custom-light: #6a7fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e86",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 134
  },
  "hsl": {
    "h": 212.621,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42204,
    "c": 0.10635,
    "h": 254.7
  },
  "luminance": 0.07461
}

Semantic roles & 50–950 ramp

primary
#1F4E86
secondary
#B88549
accent
#9B42E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F4E86

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

Preview Lab → · Contrast checker → · Palette generator →

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