#1F1B82#1F1B82

#1F1B82 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.163 H 273.5°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#1F1B82
RGBrgb(31, 27, 130)
HSLhsl(242, 66%, 31%)
HSVhsv(242, 79%, 51%)
CMYKcmyk(76.2%, 79.2%, 0%, 49%)
CIE-LABlab(18.74, 37.41, -56.33)
CIE-LCHlch(18.74, 67.62, 303.59°)
OKLaboklab(31.57% 0.0099 -0.163)
OKLCHoklch(31.57% 0.163 273.5)
XYZxyz(4.9849, 2.6864, 21.3706)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1B82 #7E821B
analogous
#1B4A82 #1F1B82 #521B82
triadic
#1F1B82 #821F1B #1B821F
tetradic
#1F1B82 #821B4A #7E821B #1B8252
square
#1F1B82 #821B4A #7E821B #1B8252
split-complementary
#1F1B82 #82521B #4A821B
monochromatic
#07061D #13104F #1F1B82 #2B26B5 #4640D7

Accessibility & contrast

On white

13.66
#1F1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1B82
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1B82#FFFFFF#000000##FFFFFF
##1F1B821.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002980
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f1b82;
/* rgb */ color: rgb(31, 27, 130);
/* oklch */ color: oklch(31.6% 0.163 273.5);
Tailwind
colors: {
  custom: {
    50: '#6d59a7',
    500: '#1f1b82',
    950: '#000000',
  },
}
SCSS
$custom: #1f1b82;
$custom-light: #6d59a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1b82",
  "rgb": {
    "r": 31,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 242.33,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31567,
    "c": 0.16328,
    "h": 273.5
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#1F1B82
secondary
#B1B643
accent
#E93FE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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