#1F1271#1F1271

#1F1271 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.4% C 0.150 H 277.1°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#1F1271
RGBrgb(31, 18, 113)
HSLhsl(248, 73%, 26%)
HSVhsv(248, 84%, 44%)
CMYKcmyk(72.6%, 84.1%, 0%, 55.7%)
CIE-LABlab(15.04, 36.59, -51.56)
CIE-LCHlch(15.04, 63.23, 305.36°)
OKLaboklab(28.39% 0.0185 -0.149)
OKLCHoklch(28.39% 0.15 277.1)
XYZxyz(3.7610, 1.9158, 15.7912)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1271 #647112
analogous
#123471 #1F1271 #4E1271
triadic
#1F1271 #711F12 #12711F
tetradic
#1F1271 #711234 #647112 #12714E
square
#1F1271 #711234 #647112 #12714E
split-complementary
#1F1271 #714E12 #347112
monochromatic
#07041A #110A3C #1F1271 #2D1AA6 #3C23DB

Accessibility & contrast

On white

15.18
#1F1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1271
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1271#FFFFFF#000000##FFFFFF
##1F12711.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1271;
/* rgb */ color: rgb(31, 18, 113);
/* oklch */ color: oklch(28.4% 0.150 277.1);
Tailwind
colors: {
  custom: {
    50: '#69539b',
    500: '#1f1271',
    950: '#000000',
  },
}
SCSS
$custom: #1f1271;
$custom-light: #69539b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1271",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 248.211,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28389,
    "c": 0.15015,
    "h": 277.1
  },
  "luminance": 0.01916
}

Semantic roles & 50–950 ramp

primary
#1F1271
secondary
#98A837
accent
#EF39D6
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1271

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

Preview Lab → · Contrast checker → · Palette generator →

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