#1F175D#1F175D

#1F175D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.8% C 0.118 H 280.0°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#1F175D
RGBrgb(31, 23, 93)
HSLhsl(247, 60%, 23%)
HSVhsv(247, 75%, 36%)
CMYKcmyk(66.7%, 75.3%, 0%, 63.5%)
CIE-LABlab(13.79, 26.86, -40.44)
CIE-LCHlch(13.79, 48.54, 303.59°)
OKLaboklab(26.84% 0.0205 -0.1166)
OKLCHoklch(26.84% 0.118 280)
XYZxyz(2.8466, 1.6942, 10.5308)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F175D #555D17
analogous
#17325D #1F175D #42175D
triadic
#1F175D #5D1F17 #175D1F
tetradic
#1F175D #5D1732 #555D17 #175D42
square
#1F175D #5D1732 #555D17 #175D42
split-complementary
#1F175D #5D4217 #325D17
monochromatic
#080619 #0F0B2C #1F175D #2F238E #402FBF

Accessibility & contrast

On white

15.69
#1F175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1F175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F175D
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F175D#FFFFFF#000000##FFFFFF
##1F175D1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f175d;
/* rgb */ color: rgb(31, 23, 93);
/* oklch */ color: oklch(26.8% 0.118 280.0);
Tailwind
colors: {
  custom: {
    50: '#64558c',
    500: '#1f175d',
    950: '#000000',
  },
}
SCSS
$custom: #1f175d;
$custom-light: #64558c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f175d",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 246.857,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26837,
    "c": 0.1184,
    "h": 280
  },
  "luminance": 0.01694
}

Semantic roles & 50–950 ramp

primary
#1F175D
secondary
#8A943C
accent
#E344D1
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1F175D

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

Preview Lab → · Contrast checker → · Palette generator →

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