#1F1D82#1F1D82

#1F1D82 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.161 H 273.2°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#1F1D82
RGBrgb(31, 29, 130)
HSLhsl(241, 64%, 31%)
HSVhsv(241, 78%, 51%)
CMYKcmyk(76.2%, 77.7%, 0%, 49%)
CIE-LABlab(19.15, 36.26, -55.66)
CIE-LCHlch(19.15, 66.43, 303.08°)
OKLaboklab(31.85% 0.009 -0.1611)
OKLCHoklch(31.85% 0.161 273.2)
XYZxyz(5.0324, 2.7812, 21.3864)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D82 #80821D
analogous
#1D4D82 #1F1D82 #511D82
triadic
#1F1D82 #821F1D #1D821F
tetradic
#1F1D82 #821D4D #80821D #1D8251
square
#1F1D82 #821D4D #80821D #1D8251
split-complementary
#1F1D82 #82511D #4D821D
monochromatic
#07071E #131250 #1F1D82 #2B28B4 #4744D5

Accessibility & contrast

On white

13.49
#1F1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D82
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D82#FFFFFF#000000##FFFFFF
##1F1D821.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f1d82;
/* rgb */ color: rgb(31, 29, 130);
/* oklch */ color: oklch(31.9% 0.161 273.2);
Tailwind
colors: {
  custom: {
    50: '#6c5ba7',
    500: '#1f1d82',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d82;
$custom-light: #6c5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d82",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 241.188,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31852,
    "c": 0.16131,
    "h": 273.2
  },
  "luminance": 0.02782
}

Semantic roles & 50–950 ramp

primary
#1F1D82
secondary
#B3B546
accent
#E741E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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