#1F177D#1F177D

#1F177D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.161 H 274.6°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#1F177D
RGBrgb(31, 23, 125)
HSLhsl(245, 69%, 29%)
HSVhsv(245, 82%, 49%)
CMYKcmyk(75.2%, 81.6%, 0%, 51%)
CIE-LABlab(17.39, 37.93, -55.40)
CIE-LCHlch(17.39, 67.14, 304.40°)
OKLaboklab(30.45% 0.0129 -0.1602)
OKLCHoklch(30.45% 0.161 274.6)
XYZxyz(4.5719, 2.3843, 19.6173)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F177D #757D17
analogous
#17427D #1F177D #52177D
triadic
#1F177D #7D1F17 #177D1F
tetradic
#1F177D #7D1742 #757D17 #177D52
square
#1F177D #7D1742 #757D17 #177D52
split-complementary
#1F177D #7D5217 #427D17
monochromatic
#06051A #120D49 #1F177D #2C21B1 #4235DA

Accessibility & contrast

On white

14.22
#1F177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1F177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F177D
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F177D#FFFFFF#000000##FFFFFF
##1F177D1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f177d;
/* rgb */ color: rgb(31, 23, 125);
/* oklch */ color: oklch(30.4% 0.161 274.6);
Tailwind
colors: {
  custom: {
    50: '#6c57a4',
    500: '#1f177d',
    950: '#000000',
  },
}
SCSS
$custom: #1f177d;
$custom-light: #6c57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f177d",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 244.706,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30446,
    "c": 0.16073,
    "h": 274.6
  },
  "luminance": 0.02385
}

Semantic roles & 50–950 ramp

primary
#1F177D
secondary
#A9B23E
accent
#EC3CDE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F177D

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

Preview Lab → · Contrast checker → · Palette generator →

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