#1F1471#1F1471

#1F1471 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.148 H 276.8°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#1F1471
RGBrgb(31, 20, 113)
HSLhsl(247, 70%, 26%)
HSVhsv(247, 82%, 44%)
CMYKcmyk(72.6%, 82.3%, 0%, 55.7%)
CIE-LABlab(15.40, 35.55, -50.97)
CIE-LCHlch(15.40, 62.14, 304.89°)
OKLaboklab(28.64% 0.0175 -0.1473)
OKLCHoklch(28.64% 0.148 276.8)
XYZxyz(3.7949, 1.9835, 15.8025)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1471 #667114
analogous
#143771 #1F1471 #4D1471
triadic
#1F1471 #711F14 #14711F
tetradic
#1F1471 #711437 #667114 #14714D
square
#1F1471 #711437 #667114 #14714D
split-complementary
#1F1471 #714D14 #377114
monochromatic
#07051A #110B3D #1F1471 #2D1DA5 #3C27D9

Accessibility & contrast

On white

15.03
#1F1471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1471
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1471#FFFFFF#000000##FFFFFF
##1F14711.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f1471;
/* rgb */ color: rgb(31, 20, 113);
/* oklch */ color: oklch(28.6% 0.148 276.8);
Tailwind
colors: {
  custom: {
    50: '#69549b',
    500: '#1f1471',
    950: '#000000',
  },
}
SCSS
$custom: #1f1471;
$custom-light: #69549b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1471",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 113
  },
  "hsl": {
    "h": 247.097,
    "s": 69.925,
    "l": 26.078
  },
  "oklch": {
    "l": 0.2864,
    "c": 0.14833,
    "h": 276.8
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#1F1471
secondary
#9AA739
accent
#ED3BD8
background
#F6F5F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1471

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

Preview Lab → · Contrast checker → · Palette generator →

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