#1F4D7A#1F4D7A

#1F4D7A is a dark, moderate cyan. Relative luminance 0.070; OKLCH L 41.2% C 0.091 H 250.6°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#1F4D7A
RGBrgb(31, 77, 122)
HSLhsl(210, 59%, 30%)
HSVhsv(210, 75%, 48%)
CMYKcmyk(74.6%, 36.9%, 0%, 52.2%)
CIE-LABlab(31.81, 0.76, -30.11)
CIE-LCHlch(31.81, 30.12, 271.45°)
OKLaboklab(41.18% -0.0302 -0.0856)
OKLCHoklch(41.18% 0.091 250.6)
XYZxyz(6.7305, 7.0035, 19.4057)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D7A #7A4C1F
analogous
#1F7A79 #1F4D7A #1F207A
triadic
#1F4D7A #7A1F4D #4D7A1F
tetradic
#1F4D7A #791F7A #7A4C1F #207A1F
square
#1F4D7A #791F7A #7A4C1F #207A1F
split-complementary
#1F4D7A #7A1F20 #7A791F
monochromatic
#060F18 #132E49 #1F4D7A #2B6CAB #448ACF

Accessibility & contrast

On white

8.75
#1F4D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#1F4D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D7A
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D7A#FFFFFF#000000##FFFFFF
##1F4D7A1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39507C
Deuteranopia (green-blind)
#2B4779
Tritanopia (blue-blind)
#00585D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4d7a;
/* rgb */ color: rgb(31, 77, 122);
/* oklch */ color: oklch(41.2% 0.091 250.6);
Tailwind
colors: {
  custom: {
    50: '#677ea0',
    500: '#1f4d7a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d7a;
$custom-light: #677ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d7a",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 122
  },
  "hsl": {
    "h": 209.67,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.41179,
    "c": 0.09075,
    "h": 250.6
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#1F4D7A
secondary
#AD7A47
accent
#9345E3
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#07090F
muted
#7A7B7E

Preview Lab

Preview with #1F4D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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