#1F1A87#1F1A87

#1F1A87 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.170 H 273.1°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#1F1A87
RGBrgb(31, 26, 135)
HSLhsl(243, 68%, 32%)
HSVhsv(243, 81%, 53%)
CMYKcmyk(77%, 80.7%, 0%, 47.1%)
CIE-LABlab(19.14, 39.65, -58.83)
CIE-LCHlch(19.14, 70.95, 303.98°)
OKLaboklab(32.02% 0.0092 -0.1702)
OKLCHoklch(32.02% 0.17 273.1)
XYZxyz(5.3062, 2.7788, 23.1737)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1A87 #82871A
analogous
#1A4C87 #1F1A87 #561A87
triadic
#1F1A87 #871F1A #1A871F
tetradic
#1F1A87 #871A4C #82871A #1A8756
square
#1F1A87 #871A4C #82871A #1A8756
split-complementary
#1F1A87 #87561A #4C871A
monochromatic
#070620 #131054 #1F1A87 #2B24BA #4841DA

Accessibility & contrast

On white

13.50
#1F1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1A87
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1A87#FFFFFF#000000##FFFFFF
##1F1A871.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f1a87;
/* rgb */ color: rgb(31, 26, 135);
/* oklch */ color: oklch(32.0% 0.170 273.1);
Tailwind
colors: {
  custom: {
    50: '#6e59ab',
    500: '#1f1a87',
    950: '#000000',
  },
}
SCSS
$custom: #1f1a87;
$custom-light: #6e59ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1a87",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 242.752,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32015,
    "c": 0.17048,
    "h": 273.1
  },
  "luminance": 0.02779
}

Semantic roles & 50–950 ramp

primary
#1F1A87
secondary
#B5BA42
accent
#EB3DE3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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