#1F176D#1F176D

#1F176D is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.140 H 276.9°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#1F176D
RGBrgb(31, 23, 109)
HSLhsl(246, 65%, 26%)
HSVhsv(246, 79%, 43%)
CMYKcmyk(71.6%, 78.9%, 0%, 57.3%)
CIE-LABlab(15.53, 32.50, -48.15)
CIE-LCHlch(15.53, 58.09, 304.01°)
OKLaboklab(28.59% 0.0169 -0.1391)
OKLCHoklch(28.59% 0.14 276.9)
XYZxyz(3.6309, 2.0079, 14.6613)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F176D #656D17
analogous
#173A6D #1F176D #4A176D
triadic
#1F176D #6D1F17 #176D1F
tetradic
#1F176D #6D173A #656D17 #176D4A
square
#1F176D #6D173A #656D17 #176D4A
split-complementary
#1F176D #6D4A17 #3A6D17
monochromatic
#070519 #110C3A #1F176D #2D22A0 #3C2CD2

Accessibility & contrast

On white

14.98
#1F176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1F176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F176D
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F176D#FFFFFF#000000##FFFFFF
##1F176D1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f176d;
/* rgb */ color: rgb(31, 23, 109);
/* oklch */ color: oklch(28.6% 0.140 276.9);
Tailwind
colors: {
  custom: {
    50: '#685698',
    500: '#1f176d',
    950: '#000000',
  },
}
SCSS
$custom: #1f176d;
$custom-light: #685698;
$custom-dark: #000000;
JSON
{
  "hex": "#1f176d",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 245.581,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28593,
    "c": 0.14017,
    "h": 276.9
  },
  "luminance": 0.02008
}

Semantic roles & 50–950 ramp

primary
#1F176D
secondary
#99A33D
accent
#E840D8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F176D

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

Preview Lab → · Contrast checker → · Palette generator →

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