#1F4A80#1F4A80

#1F4A80 is a dark, moderate cyan. Relative luminance 0.067; OKLCH L 40.8% C 0.103 H 255.6°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#1F4A80
RGBrgb(31, 74, 128)
HSLhsl(213, 61%, 31%)
HSVhsv(213, 76%, 50%)
CMYKcmyk(75.8%, 42.2%, 0%, 49.8%)
CIE-LABlab(31.22, 5.12, -34.78)
CIE-LCHlch(31.22, 35.16, 278.37°)
OKLaboklab(40.83% -0.0255 -0.0993)
OKLCHoklch(40.83% 0.103 255.6)
XYZxyz(6.9087, 6.7466, 21.3560)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A80 #80551F
analogous
#1F7A80 #1F4A80 #241F80
triadic
#1F4A80 #801F4A #4A801F
tetradic
#1F4A80 #801F7A #80551F #1F8024
square
#1F4A80 #801F7A #80551F #1F8024
split-complementary
#1F4A80 #80241F #7A801F
monochromatic
#07111D #132E4F #1F4A80 #2B66B1 #4785D2

Accessibility & contrast

On white

8.94
#1F4A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#1F4A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A80
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A80#FFFFFF#000000##FFFFFF
##1F4A801.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304E82
Deuteranopia (green-blind)
#20457F
Tritanopia (blue-blind)
#00575E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4a80;
/* rgb */ color: rgb(31, 74, 128);
/* oklch */ color: oklch(40.8% 0.103 255.6);
Tailwind
colors: {
  custom: {
    50: '#697ca5',
    500: '#1f4a80',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a80;
$custom-light: #697ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a80",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 128
  },
  "hsl": {
    "h": 213.402,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40832,
    "c": 0.10256,
    "h": 255.6
  },
  "luminance": 0.06747
}

Semantic roles & 50–950 ramp

primary
#1F4A80
secondary
#B38348
accent
#9D44E4
background
#F6F7FA
surface
#EBEEF4
border
#C6C9CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F4A80

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

Preview Lab → · Contrast checker → · Palette generator →

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