#1F1884#1F1884

#1F1884 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.169 H 273.6°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#1F1884
RGBrgb(31, 24, 132)
HSLhsl(244, 69%, 31%)
HSVhsv(244, 82%, 52%)
CMYKcmyk(76.5%, 81.8%, 0%, 48.2%)
CIE-LABlab(18.41, 39.72, -58.14)
CIE-LCHlch(18.41, 70.42, 304.34°)
OKLaboklab(31.4% 0.0107 -0.1682)
OKLCHoklch(31.4% 0.169 273.6)
XYZxyz(5.0552, 2.6100, 22.0627)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1884 #7D8418
analogous
#184784 #1F1884 #551884
triadic
#1F1884 #841F18 #18841F
tetradic
#1F1884 #841847 #7D8418 #188455
square
#1F1884 #841847 #7D8418 #188455
split-complementary
#1F1884 #845518 #478418
monochromatic
#07051C #130F50 #1F1884 #2B21B8 #453BDB

Accessibility & contrast

On white

13.80
#1F1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1884
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1884#FFFFFF#000000##FFFFFF
##1F18841.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002882
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1884;
/* rgb */ color: rgb(31, 24, 132);
/* oklch */ color: oklch(31.4% 0.169 273.6);
Tailwind
colors: {
  custom: {
    50: '#6d58a9',
    500: '#1f1884',
    950: '#000000',
  },
}
SCSS
$custom: #1f1884;
$custom-light: #6d58a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1884",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 243.889,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31404,
    "c": 0.16855,
    "h": 273.6
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#1F1884
secondary
#B0B840
accent
#EC3CE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1884

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

Preview Lab → · Contrast checker → · Palette generator →

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