#1F177E#1F177E

#1F177E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.162 H 274.5°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#1F177E
RGBrgb(31, 23, 126)
HSLhsl(245, 69%, 29%)
HSVhsv(245, 82%, 49%)
CMYKcmyk(75.4%, 81.7%, 0%, 50.6%)
CIE-LABlab(17.51, 38.26, -55.84)
CIE-LCHlch(17.51, 67.69, 304.42°)
OKLaboklab(30.56% 0.0126 -0.1615)
OKLCHoklch(30.56% 0.162 274.5)
XYZxyz(4.6361, 2.4100, 19.9555)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F177E #767E17
analogous
#17437E #1F177E #53177E
triadic
#1F177E #7E1F17 #177E1F
tetradic
#1F177E #7E1743 #767E17 #177E53
square
#1F177E #7E1743 #767E17 #177E53
split-complementary
#1F177E #7E5317 #437E17
monochromatic
#06051A #120E4A #1F177E #2C20B2 #4235DA

Accessibility & contrast

On white

14.17
#1F177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F177E
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F177E#FFFFFF#000000##FFFFFF
##1F177E1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f177e;
/* rgb */ color: rgb(31, 23, 126);
/* oklch */ color: oklch(30.6% 0.162 274.5);
Tailwind
colors: {
  custom: {
    50: '#6c57a5',
    500: '#1f177e',
    950: '#000000',
  },
}
SCSS
$custom: #1f177e;
$custom-light: #6c57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f177e",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 244.66,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30564,
    "c": 0.16198,
    "h": 274.5
  },
  "luminance": 0.0241
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F177E

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

Preview Lab → · Contrast checker → · Palette generator →

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