#1F174D#1F174D

#1F174D is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.2% C 0.095 H 284.0°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#1F174D
RGBrgb(31, 23, 77)
HSLhsl(249, 54%, 20%)
HSVhsv(249, 70%, 30%)
CMYKcmyk(59.7%, 70.1%, 0%, 69.8%)
CIE-LABlab(12.22, 21.08, -32.15)
CIE-LCHlch(12.22, 38.45, 303.26°)
OKLaboklab(25.22% 0.023 -0.0923)
OKLCHoklch(25.22% 0.095 284)
XYZxyz(2.2106, 1.4398, 7.1812)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F174D #454D17
analogous
#172A4D #1F174D #3A174D
triadic
#1F174D #4D1F17 #174D1F
tetradic
#1F174D #4D172A #454D17 #174D3A
square
#1F174D #4D172A #454D17 #174D3A
split-complementary
#1F174D #4D3A17 #2A4D17
monochromatic
#090718 #0C091E #1F174D #32257C #4533AB

Accessibility & contrast

On white

16.30
#1F174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#1F174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F174D
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F174D#FFFFFF#000000##FFFFFF
##1F174D1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#0B242F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1f174d;
/* rgb */ color: rgb(31, 23, 77);
/* oklch */ color: oklch(25.2% 0.095 284.0);
Tailwind
colors: {
  custom: {
    50: '#60547f',
    500: '#1f174d',
    950: '#000000',
  },
}
SCSS
$custom: #1f174d;
$custom-light: #60547f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f174d",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 248.889,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25217,
    "c": 0.09513,
    "h": 284
  },
  "luminance": 0.0144
}

Semantic roles & 50–950 ramp

primary
#1F174D
secondary
#79843C
accent
#DD4AC8
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F174D

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

Preview Lab → · Contrast checker → · Palette generator →

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