#1F177F#1F177F

#1F177F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.163 H 274.3°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#1F177F
RGBrgb(31, 23, 127)
HSLhsl(245, 69%, 29%)
HSVhsv(245, 82%, 50%)
CMYKcmyk(75.6%, 81.9%, 0%, 50.2%)
CIE-LABlab(17.63, 38.60, -56.27)
CIE-LCHlch(17.63, 68.24, 304.44°)
OKLaboklab(30.68% 0.0124 -0.1628)
OKLCHoklch(30.68% 0.163 274.3)
XYZxyz(4.7010, 2.4359, 20.2970)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F177F #777F17
analogous
#17437F #1F177F #53177F
triadic
#1F177F #7F1F17 #177F1F
tetradic
#1F177F #7F1743 #777F17 #177F53
square
#1F177F #7F1743 #777F17 #177F53
split-complementary
#1F177F #7F5317 #437F17
monochromatic
#06051A #120E4B #1F177F #2C20B3 #4336DB

Accessibility & contrast

On white

14.12
#1F177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1F177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F177F
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F177F#FFFFFF#000000##FFFFFF
##1F177F1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f177f;
/* rgb */ color: rgb(31, 23, 127);
/* oklch */ color: oklch(30.7% 0.163 274.3);
Tailwind
colors: {
  custom: {
    50: '#6c57a5',
    500: '#1f177f',
    950: '#000000',
  },
}
SCSS
$custom: #1f177f;
$custom-light: #6c57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f177f",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 244.615,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30683,
    "c": 0.16323,
    "h": 274.3
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#1F177F
secondary
#ABB43E
accent
#EC3CDF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F177F

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

Preview Lab → · Contrast checker → · Palette generator →

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