#1F1071#1F1071

#1F1071 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.152 H 277.3°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#1F1071
RGBrgb(31, 16, 113)
HSLhsl(249, 75%, 25%)
HSVhsv(249, 86%, 44%)
CMYKcmyk(72.6%, 85.8%, 0%, 55.7%)
CIE-LABlab(14.70, 37.58, -52.12)
CIE-LCHlch(14.70, 64.26, 305.79°)
OKLaboklab(28.15% 0.0194 -0.1506)
OKLCHoklch(28.15% 0.152 277.3)
XYZxyz(3.7300, 1.8538, 15.7808)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1071 #627110
analogous
#103271 #1F1071 #4F1071
triadic
#1F1071 #711F10 #10711F
tetradic
#1F1071 #711032 #627110 #10714F
square
#1F1071 #711032 #627110 #10714F
split-complementary
#1F1071 #714F10 #327110
monochromatic
#07041B #10083B #1F1071 #2E18A7 #3C1FDC

Accessibility & contrast

On white

15.32
#1F1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1F1071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1071
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1071#FFFFFF#000000##FFFFFF
##1F10711.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.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: #1f1071;
/* rgb */ color: rgb(31, 16, 113);
/* oklch */ color: oklch(28.2% 0.152 277.3);
Tailwind
colors: {
  custom: {
    50: '#69529b',
    500: '#1f1071',
    950: '#000000',
  },
}
SCSS
$custom: #1f1071;
$custom-light: #69529b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1071",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 249.278,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28154,
    "c": 0.15185,
    "h": 277.3
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#1F1071
secondary
#97A934
accent
#F236D5
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F1071

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

Preview Lab → · Contrast checker → · Palette generator →

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