#1F174E#1F174E

#1F174E is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.097 H 283.7°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#1F174E
RGBrgb(31, 23, 78)
HSLhsl(249, 54%, 20%)
HSVhsv(249, 71%, 31%)
CMYKcmyk(60.3%, 70.5%, 0%, 69.4%)
CIE-LABlab(12.31, 21.45, -32.69)
CIE-LCHlch(12.31, 39.10, 303.27°)
OKLaboklab(25.31% 0.0229 -0.0939)
OKLCHoklch(25.31% 0.097 283.7)
XYZxyz(2.2462, 1.4540, 7.3685)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F174E #464E17
analogous
#172B4E #1F174E #3A174E
triadic
#1F174E #4E1F17 #174E1F
tetradic
#1F174E #4E172B #464E17 #174E3A
square
#1F174E #4E172B #464E17 #174E3A
split-complementary
#1F174E #4E3A17 #2B4E17
monochromatic
#090718 #0C091F #1F174E #32257D #4533AD

Accessibility & contrast

On white

16.27
#1F174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F174E
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F174E#FFFFFF#000000##FFFFFF
##1F174E1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002250
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#0A2530
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1f174e;
/* rgb */ color: rgb(31, 23, 78);
/* oklch */ color: oklch(25.3% 0.097 283.7);
Tailwind
colors: {
  custom: {
    50: '#605480',
    500: '#1f174e',
    950: '#000000',
  },
}
SCSS
$custom: #1f174e;
$custom-light: #605480;
$custom-dark: #000000;
JSON
{
  "hex": "#1f174e",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 248.727,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25314,
    "c": 0.09663,
    "h": 283.7
  },
  "luminance": 0.01454
}

Semantic roles & 50–950 ramp

primary
#1F174E
secondary
#7A853C
accent
#DE4AC8
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05030A
muted
#79787C

Preview Lab

Preview with #1F174E

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

Preview Lab → · Contrast checker → · Palette generator →

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