#1F4E7A#1F4E7A

#1F4E7A is a dark, moderate cyan. Relative luminance 0.071; OKLCH L 41.4% C 0.090 H 249.6°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#1F4E7A
RGBrgb(31, 78, 122)
HSLhsl(209, 59%, 30%)
HSVhsv(209, 75%, 48%)
CMYKcmyk(74.6%, 36.1%, 0%, 52.2%)
CIE-LABlab(32.13, 0.11, -29.61)
CIE-LCHlch(32.13, 29.61, 270.20°)
OKLaboklab(41.43% -0.0312 -0.0841)
OKLCHoklch(41.43% 0.09 249.6)
XYZxyz(6.8010, 7.1445, 19.4292)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E7A #7A4B1F
analogous
#1F7A78 #1F4E7A #1F217A
triadic
#1F4E7A #7A1F4E #4E7A1F
tetradic
#1F4E7A #781F7A #7A4B1F #217A1F
square
#1F4E7A #781F7A #7A4B1F #217A1F
split-complementary
#1F4E7A #7A1F21 #7A781F
monochromatic
#061018 #132F49 #1F4E7A #2B6DAB #448CCF

Accessibility & contrast

On white

8.65
#1F4E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1F4E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E7A
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E7A#FFFFFF#000000##FFFFFF
##1F4E7A1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A507C
Deuteranopia (green-blind)
#2D4879
Tritanopia (blue-blind)
#00585E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4e7a;
/* rgb */ color: rgb(31, 78, 122);
/* oklch */ color: oklch(41.4% 0.090 249.6);
Tailwind
colors: {
  custom: {
    50: '#677fa0',
    500: '#1f4e7a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e7a;
$custom-light: #677fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e7a",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 122
  },
  "hsl": {
    "h": 209.011,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.41429,
    "c": 0.08971,
    "h": 249.6
  },
  "luminance": 0.07145
}

Semantic roles & 50–950 ramp

primary
#1F4E7A
secondary
#AD7947
accent
#9145E3
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#070A0F
muted
#7A7C7E

Preview Lab

Preview with #1F4E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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