#1F4E88#1F4E88

#1F4E88 is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.3% C 0.109 H 255.4°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#1F4E88
RGBrgb(31, 78, 136)
HSLhsl(213, 63%, 33%)
HSVhsv(213, 77%, 53%)
CMYKcmyk(77.2%, 42.6%, 0%, 46.7%)
CIE-LABlab(32.96, 5.63, -36.96)
CIE-LCHlch(32.96, 37.39, 278.66°)
OKLaboklab(42.34% -0.0275 -0.1056)
OKLCHoklch(42.34% 0.109 255.4)
XYZxyz(7.7318, 7.5168, 24.3312)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E88 #88591F
analogous
#1F8288 #1F4E88 #251F88
triadic
#1F4E88 #881F4E #4E881F
tetradic
#1F4E88 #881F82 #88591F #1F8825
square
#1F4E88 #881F82 #88591F #1F8825
split-complementary
#1F4E88 #88251F #82881F
monochromatic
#081524 #143156 #1F4E88 #2A6BBA #4B89D6

Accessibility & contrast

On white

8.39
#1F4E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#1F4E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E88
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E88#FFFFFF#000000##FFFFFF
##1F4E881.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32538A
Deuteranopia (green-blind)
#204987
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4e88;
/* rgb */ color: rgb(31, 78, 136);
/* oklch */ color: oklch(42.3% 0.109 255.4);
Tailwind
colors: {
  custom: {
    50: '#6a7fab',
    500: '#1f4e88',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e88;
$custom-light: #6a7fab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e88",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 136
  },
  "hsl": {
    "h": 213.143,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42339,
    "c": 0.10917,
    "h": 255.4
  },
  "luminance": 0.07518
}

Semantic roles & 50–950 ramp

primary
#1F4E88
secondary
#B9874A
accent
#9C42E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F4E88

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

Preview Lab → · Contrast checker → · Palette generator →

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