#1F4E81#1F4E81

#1F4E81 is a dark, moderate cyan. Relative luminance 0.073; OKLCH L 41.9% C 0.099 H 252.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#1F4E81
RGBrgb(31, 78, 129)
HSLhsl(211, 61%, 31%)
HSVhsv(211, 76%, 51%)
CMYKcmyk(76%, 39.5%, 0%, 49.4%)
CIE-LABlab(32.53, 2.85, -33.32)
CIE-LCHlch(32.53, 33.44, 274.90°)
OKLaboklab(41.87% -0.0292 -0.095)
OKLCHoklch(41.87% 0.099 252.9)
XYZxyz(7.2504, 7.3243, 21.7962)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E81 #81521F
analogous
#1F7F81 #1F4E81 #211F81
triadic
#1F4E81 #811F4E #4E811F
tetradic
#1F4E81 #811F7F #81521F #1F8121
square
#1F4E81 #811F7F #81521F #1F8121
split-complementary
#1F4E81 #81211F #7F811F
monochromatic
#07121E #133050 #1F4E81 #2B6CB2 #478AD3

Accessibility & contrast

On white

8.52
#1F4E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#1F4E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E81
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E81#FFFFFF#000000##FFFFFF
##1F4E811.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365183
Deuteranopia (green-blind)
#274880
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4e81;
/* rgb */ color: rgb(31, 78, 129);
/* oklch */ color: oklch(41.9% 0.099 252.9);
Tailwind
colors: {
  custom: {
    50: '#697fa6',
    500: '#1f4e81',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e81;
$custom-light: #697fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e81",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 129
  },
  "hsl": {
    "h": 211.224,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41873,
    "c": 0.09935,
    "h": 252.9
  },
  "luminance": 0.07325
}

Semantic roles & 50–950 ramp

primary
#1F4E81
secondary
#B48048
accent
#9743E4
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F4E81

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

Preview Lab → · Contrast checker → · Palette generator →

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