#1F4F7B#1F4F7B

#1F4F7B is a dark, moderate cyan. Relative luminance 0.073; OKLCH L 41.7% C 0.090 H 249.2°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#1F4F7B
RGBrgb(31, 79, 123)
HSLhsl(209, 60%, 30%)
HSVhsv(209, 75%, 48%)
CMYKcmyk(74.8%, 35.8%, 0%, 51.8%)
CIE-LABlab(32.51, -0.16, -29.64)
CIE-LCHlch(32.51, 29.64, 269.70°)
OKLaboklab(41.74% -0.032 -0.0842)
OKLCHoklch(41.74% 0.09 249.2)
XYZxyz(6.9349, 7.3126, 19.7810)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F7B #7B4B1F
analogous
#1F7B79 #1F4F7B #1F217B
triadic
#1F4F7B #7B1F4F #4F7B1F
tetradic
#1F4F7B #791F7B #7B4B1F #217B1F
square
#1F4F7B #791F7B #7B4B1F #217B1F
split-complementary
#1F4F7B #7B1F21 #7B791F
monochromatic
#061019 #13304A #1F4F7B #2B6EAC #448DD0

Accessibility & contrast

On white

8.53
#1F4F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#1F4F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F7B
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F7B#FFFFFF#000000##FFFFFF
##1F4F7B1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B517D
Deuteranopia (green-blind)
#2E497A
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4f7b;
/* rgb */ color: rgb(31, 79, 123);
/* oklch */ color: oklch(41.7% 0.090 249.2);
Tailwind
colors: {
  custom: {
    50: '#6880a1',
    500: '#1f4f7b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f7b;
$custom-light: #6880a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f7b",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 123
  },
  "hsl": {
    "h": 208.696,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.41741,
    "c": 0.09004,
    "h": 249.2
  },
  "luminance": 0.07313
}

Semantic roles & 50–950 ramp

primary
#1F4F7B
secondary
#AE7948
accent
#9045E3
background
#F6F7F9
surface
#EBEEF2
border
#C6C9CC
text
#070A0F
muted
#7A7C7E

Preview Lab

Preview with #1F4F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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