#1F177A#1F177A

#1F177A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.157 H 275.0°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#1F177A
RGBrgb(31, 23, 122)
HSLhsl(245, 68%, 28%)
HSVhsv(245, 81%, 48%)
CMYKcmyk(74.6%, 81.1%, 0%, 52.2%)
CIE-LABlab(17.03, 36.93, -54.07)
CIE-LCHlch(17.03, 65.48, 304.33°)
OKLaboklab(30.09% 0.0137 -0.1564)
OKLCHoklch(30.09% 0.157 275)
XYZxyz(4.3832, 2.3088, 18.6232)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F177A #727A17
analogous
#17407A #1F177A #50177A
triadic
#1F177A #7A1F17 #177A1F
tetradic
#1F177A #7A1740 #727A17 #177A50
square
#1F177A #7A1740 #727A17 #177A50
split-complementary
#1F177A #7A5017 #407A17
monochromatic
#07051A #120D47 #1F177A #2C21AD #4033D9

Accessibility & contrast

On white

14.37
#1F177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1F177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F177A
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F177A#FFFFFF#000000##FFFFFF
##1F177A1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f177a;
/* rgb */ color: rgb(31, 23, 122);
/* oklch */ color: oklch(30.1% 0.157 275.0);
Tailwind
colors: {
  custom: {
    50: '#6b57a2',
    500: '#1f177a',
    950: '#000000',
  },
}
SCSS
$custom: #1f177a;
$custom-light: #6b57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f177a",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 244.848,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30092,
    "c": 0.15696,
    "h": 275
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#1F177A
secondary
#A6AF3E
accent
#EB3DDD
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F177A

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

Preview Lab → · Contrast checker → · Palette generator →

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