#1F4E7D#1F4E7D

#1F4E7D is a dark, moderate cyan. Relative luminance 0.072; OKLCH L 41.6% C 0.094 H 251.1°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#1F4E7D
RGBrgb(31, 78, 125)
HSLhsl(210, 60%, 31%)
HSVhsv(210, 75%, 49%)
CMYKcmyk(75.2%, 37.6%, 0%, 51%)
CIE-LABlab(32.30, 1.28, -31.21)
CIE-LCHlch(32.30, 31.23, 272.35°)
OKLaboklab(41.62% -0.0303 -0.0888)
OKLCHoklch(41.62% 0.094 251.1)
XYZxyz(6.9897, 7.2200, 20.4233)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E7D #7D4E1F
analogous
#1F7D7D #1F4E7D #1F1F7D
triadic
#1F4E7D #7D1F4E #4E7D1F
tetradic
#1F4E7D #7D1F7D #7D4E1F #1F7D1F
square
#1F4E7D #7D1F7D #7D4E1F #1F7D1F
split-complementary
#1F4E7D #7D1F1F #7D7D1F
monochromatic
#07111B #132F4C #1F4E7D #2B6DAE #458BD1

Accessibility & contrast

On white

8.59
#1F4E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#1F4E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E7D
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E7D#FFFFFF#000000##FFFFFF
##1F4E7D1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39517F
Deuteranopia (green-blind)
#2B487C
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4e7d;
/* rgb */ color: rgb(31, 78, 125);
/* oklch */ color: oklch(41.6% 0.094 251.1);
Tailwind
colors: {
  custom: {
    50: '#687fa3',
    500: '#1f4e7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e7d;
$custom-light: #687fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e7d",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 125
  },
  "hsl": {
    "h": 210,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41617,
    "c": 0.09381,
    "h": 251.1
  },
  "luminance": 0.07221
}

Semantic roles & 50–950 ramp

primary
#1F4E7D
secondary
#B07C48
accent
#9444E3
background
#F6F7FA
surface
#EBEEF3
border
#C6C9CD
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F4E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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