#1F1571#1F1571

#1F1571 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.8% C 0.147 H 276.6°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#1F1571
RGBrgb(31, 21, 113)
HSLhsl(247, 69%, 26%)
HSVhsv(247, 81%, 44%)
CMYKcmyk(72.6%, 81.4%, 0%, 55.7%)
CIE-LABlab(15.59, 35.00, -50.65)
CIE-LCHlch(15.59, 61.57, 304.65°)
OKLaboklab(28.77% 0.017 -0.1464)
OKLCHoklch(28.77% 0.147 276.6)
XYZxyz(3.8129, 2.0195, 15.8085)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1571 #677115
analogous
#153971 #1F1571 #4D1571
triadic
#1F1571 #711F15 #15711F
tetradic
#1F1571 #711539 #677115 #15714D
square
#1F1571 #711539 #677115 #15714D
split-complementary
#1F1571 #714D15 #397115
monochromatic
#07051A #110B3D #1F1571 #2D1FA5 #3C29D7

Accessibility & contrast

On white

14.96
#1F1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1F1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1571
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1571#FFFFFF#000000##FFFFFF
##1F15711.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f1571;
/* rgb */ color: rgb(31, 21, 113);
/* oklch */ color: oklch(28.8% 0.147 276.6);
Tailwind
colors: {
  custom: {
    50: '#69559b',
    500: '#1f1571',
    950: '#000000',
  },
}
SCSS
$custom: #1f1571;
$custom-light: #69559b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1571",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 246.522,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28772,
    "c": 0.14739,
    "h": 276.6
  },
  "luminance": 0.0202
}

Semantic roles & 50–950 ramp

primary
#1F1571
secondary
#9BA73B
accent
#EB3CD8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1571

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

Preview Lab → · Contrast checker → · Palette generator →

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