#1F177B#1F177B

#1F177B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.158 H 274.9°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#1F177B
RGBrgb(31, 23, 123)
HSLhsl(245, 68%, 29%)
HSVhsv(245, 81%, 48%)
CMYKcmyk(74.8%, 81.3%, 0%, 51.8%)
CIE-LABlab(17.15, 37.26, -54.51)
CIE-LCHlch(17.15, 66.03, 304.36°)
OKLaboklab(30.21% 0.0134 -0.1577)
OKLCHoklch(30.21% 0.158 274.9)
XYZxyz(4.4454, 2.3337, 18.9512)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F177B #737B17
analogous
#17417B #1F177B #51177B
triadic
#1F177B #7B1F17 #177B1F
tetradic
#1F177B #7B1741 #737B17 #177B51
square
#1F177B #7B1741 #737B17 #177B51
split-complementary
#1F177B #7B5117 #417B17
monochromatic
#06051A #120D47 #1F177B #2C21AF #4133D9

Accessibility & contrast

On white

14.32
#1F177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F177B
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F177B#FFFFFF#000000##FFFFFF
##1F177B1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f177b;
/* rgb */ color: rgb(31, 23, 123);
/* oklch */ color: oklch(30.2% 0.158 274.9);
Tailwind
colors: {
  custom: {
    50: '#6b57a2',
    500: '#1f177b',
    950: '#000000',
  },
}
SCSS
$custom: #1f177b;
$custom-light: #6b57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f177b",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 244.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3021,
    "c": 0.15822,
    "h": 274.9
  },
  "luminance": 0.02334
}

Semantic roles & 50–950 ramp

primary
#1F177B
secondary
#A7B03E
accent
#EB3CDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F177B

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

Preview Lab → · Contrast checker → · Palette generator →

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