#1F1371#1F1371

#1F1371 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.5% C 0.149 H 276.9°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#1F1371
RGBrgb(31, 19, 113)
HSLhsl(248, 71%, 26%)
HSVhsv(248, 83%, 44%)
CMYKcmyk(72.6%, 83.2%, 0%, 55.7%)
CIE-LABlab(15.22, 36.08, -51.27)
CIE-LCHlch(15.22, 62.69, 305.13°)
OKLaboklab(28.51% 0.018 -0.1482)
OKLCHoklch(28.51% 0.149 276.9)
XYZxyz(3.7776, 1.9490, 15.7967)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1371 #657113
analogous
#133671 #1F1371 #4E1371
triadic
#1F1371 #711F13 #13711F
tetradic
#1F1371 #711336 #657113 #13714E
square
#1F1371 #711336 #657113 #13714E
split-complementary
#1F1371 #714E13 #367113
monochromatic
#07041A #110A3D #1F1371 #2D1CA5 #3C25DA

Accessibility & contrast

On white

15.11
#1F1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1371
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1371#FFFFFF#000000##FFFFFF
##1F13711.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1371;
/* rgb */ color: rgb(31, 19, 113);
/* oklch */ color: oklch(28.5% 0.149 276.9);
Tailwind
colors: {
  custom: {
    50: '#69549b',
    500: '#1f1371',
    950: '#000000',
  },
}
SCSS
$custom: #1f1371;
$custom-light: #69549b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1371",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 247.66,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28512,
    "c": 0.14925,
    "h": 276.9
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#1F1371
secondary
#99A838
accent
#EE3AD7
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1371

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

Preview Lab → · Contrast checker → · Palette generator →

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