#1F1582#1F1582

#1F1582 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.8% C 0.169 H 274.2°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#1F1582
RGBrgb(31, 21, 130)
HSLhsl(246, 72%, 30%)
HSVhsv(246, 84%, 51%)
CMYKcmyk(76.2%, 83.8%, 0%, 49%)
CIE-LABlab(17.64, 40.60, -58.16)
CIE-LCHlch(17.64, 70.92, 304.92°)
OKLaboklab(30.8% 0.0123 -0.1682)
OKLCHoklch(30.8% 0.169 274.2)
XYZxyz(4.8612, 2.4388, 21.3293)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1582 #788215
analogous
#154182 #1F1582 #561582
triadic
#1F1582 #821F15 #15821F
tetradic
#1F1582 #821541 #788215 #158256
square
#1F1582 #821541 #788215 #158256
split-complementary
#1F1582 #825615 #418215
monochromatic
#06041A #120C4D #1F1582 #2C1EB7 #4333DE

Accessibility & contrast

On white

14.11
#1F1582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1F1582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1582
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1582#FFFFFF#000000##FFFFFF
##1F15821.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003085
Deuteranopia (green-blind)
#002680
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f1582;
/* rgb */ color: rgb(31, 21, 130);
/* oklch */ color: oklch(30.8% 0.169 274.2);
Tailwind
colors: {
  custom: {
    50: '#6d56a8',
    500: '#1f1582',
    950: '#000000',
  },
}
SCSS
$custom: #1f1582;
$custom-light: #6d56a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1582",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 245.505,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30798,
    "c": 0.16864,
    "h": 274.2
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

primary
#1F1582
secondary
#ABB73C
accent
#EF39DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1582

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

Preview Lab → · Contrast checker → · Palette generator →

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