#1F4D7B#1F4D7B

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

Color values

HEX#1F4D7B
RGBrgb(31, 77, 123)
HSLhsl(210, 60%, 30%)
HSVhsv(210, 75%, 48%)
CMYKcmyk(74.8%, 37.4%, 0%, 51.8%)
CIE-LABlab(31.87, 1.15, -30.65)
CIE-LCHlch(31.87, 30.67, 272.15°)
OKLaboklab(41.24% -0.0299 -0.0871)
OKLCHoklch(41.24% 0.092 251.1)
XYZxyz(6.7928, 7.0284, 19.7337)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D7B #7B4D1F
analogous
#1F7B7B #1F4D7B #1F1F7B
triadic
#1F4D7B #7B1F4D #4D7B1F
tetradic
#1F4D7B #7B1F7B #7B4D1F #1F7B1F
square
#1F4D7B #7B1F7B #7B4D1F #1F7B1F
split-complementary
#1F4D7B #7B1F1F #7B7B1F
monochromatic
#061019 #132E4A #1F4D7B #2B6CAC #448AD0

Accessibility & contrast

On white

8.73
#1F4D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1F4D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D7B
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D7B#FFFFFF#000000##FFFFFF
##1F4D7B1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38507D
Deuteranopia (green-blind)
#2B477A
Tritanopia (blue-blind)
#00585E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4d7b;
/* rgb */ color: rgb(31, 77, 123);
/* oklch */ color: oklch(41.2% 0.092 251.1);
Tailwind
colors: {
  custom: {
    50: '#687ea1',
    500: '#1f4d7b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d7b;
$custom-light: #687ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d7b",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 123
  },
  "hsl": {
    "h": 210,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.41242,
    "c": 0.09212,
    "h": 251.1
  },
  "luminance": 0.07029
}

Semantic roles & 50–950 ramp

primary
#1F4D7B
secondary
#AE7B48
accent
#9445E3
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#07090F
muted
#7A7B7E

Preview Lab

Preview with #1F4D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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