#1F4E7B#1F4E7B

#1F4E7B is a dark, moderate cyan. Relative luminance 0.072; OKLCH L 41.5% C 0.091 H 250.1°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#1F4E7B
RGBrgb(31, 78, 123)
HSLhsl(209, 60%, 30%)
HSVhsv(209, 75%, 48%)
CMYKcmyk(74.8%, 36.6%, 0%, 51.8%)
CIE-LABlab(32.19, 0.50, -30.14)
CIE-LCHlch(32.19, 30.15, 270.94°)
OKLaboklab(41.49% -0.0309 -0.0857)
OKLCHoklch(41.49% 0.091 250.1)
XYZxyz(6.8633, 7.1694, 19.7572)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E7B #7B4C1F
analogous
#1F7B7A #1F4E7B #1F207B
triadic
#1F4E7B #7B1F4E #4E7B1F
tetradic
#1F4E7B #7A1F7B #7B4C1F #207B1F
square
#1F4E7B #7A1F7B #7B4C1F #207B1F
split-complementary
#1F4E7B #7B1F20 #7B7A1F
monochromatic
#061019 #132F4A #1F4E7B #2B6DAC #448CD0

Accessibility & contrast

On white

8.63
#1F4E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4E7B
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E7B#FFFFFF#000000##FFFFFF
##1F4E7B1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A507D
Deuteranopia (green-blind)
#2C487A
Tritanopia (blue-blind)
#00595E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4e7b;
/* rgb */ color: rgb(31, 78, 123);
/* oklch */ color: oklch(41.5% 0.091 250.1);
Tailwind
colors: {
  custom: {
    50: '#687fa1',
    500: '#1f4e7b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e7b;
$custom-light: #687fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e7b",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 123
  },
  "hsl": {
    "h": 209.348,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.41491,
    "c": 0.09107,
    "h": 250.1
  },
  "luminance": 0.0717
}

Semantic roles & 50–950 ramp

primary
#1F4E7B
secondary
#AE7A48
accent
#9245E3
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#070A0F
muted
#7A7C7E

Preview Lab

Preview with #1F4E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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