#1F1171#1F1171

#1F1171 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.151 H 277.2°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#1F1171
RGBrgb(31, 17, 113)
HSLhsl(249, 74%, 25%)
HSVhsv(249, 85%, 44%)
CMYKcmyk(72.6%, 85%, 0%, 55.7%)
CIE-LABlab(14.87, 37.10, -51.85)
CIE-LCHlch(14.87, 63.75, 305.58°)
OKLaboklab(28.27% 0.019 -0.1498)
OKLCHoklch(28.27% 0.151 277.2)
XYZxyz(3.7452, 1.8841, 15.7859)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1171 #637111
analogous
#113371 #1F1171 #4F1171
triadic
#1F1171 #711F11 #11711F
tetradic
#1F1171 #711133 #637111 #11714F
square
#1F1171 #711133 #637111 #11714F
split-complementary
#1F1171 #714F11 #337111
monochromatic
#07041B #10093C #1F1171 #2E19A6 #3C21DB

Accessibility & contrast

On white

15.25
#1F1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1171
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1171#FFFFFF#000000##FFFFFF
##1F11711.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00216F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f1171;
/* rgb */ color: rgb(31, 17, 113);
/* oklch */ color: oklch(28.3% 0.151 277.2);
Tailwind
colors: {
  custom: {
    50: '#69539b',
    500: '#1f1171',
    950: '#000000',
  },
}
SCSS
$custom: #1f1171;
$custom-light: #69539b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1171",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 248.75,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28269,
    "c": 0.15101,
    "h": 277.2
  },
  "luminance": 0.01884
}

Semantic roles & 50–950 ramp

primary
#1F1171
secondary
#98A836
accent
#F137D5
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F1171

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

Preview Lab → · Contrast checker → · Palette generator →

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