#1F1784#1F1784

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

Color values

HEX#1F1784
RGBrgb(31, 23, 132)
HSLhsl(244, 70%, 30%)
HSVhsv(244, 83%, 52%)
CMYKcmyk(76.5%, 82.6%, 0%, 48.2%)
CIE-LABlab(18.23, 40.24, -58.44)
CIE-LCHlch(18.23, 70.95, 304.55°)
OKLaboklab(31.28% 0.0111 -0.169)
OKLCHoklch(31.28% 0.169 273.7)
XYZxyz(5.0349, 2.5695, 22.0559)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1784 #7C8417
analogous
#174584 #1F1784 #561784
triadic
#1F1784 #841F17 #17841F
tetradic
#1F1784 #841745 #7C8417 #178456
square
#1F1784 #841745 #7C8417 #178456
split-complementary
#1F1784 #845617 #458417
monochromatic
#07051C #130E50 #1F1784 #2B20B8 #4539DC

Accessibility & contrast

On white

13.87
#1F1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1784
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1784#FFFFFF#000000##FFFFFF
##1F17841.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003187
Deuteranopia (green-blind)
#002782
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f1784;
/* rgb */ color: rgb(31, 23, 132);
/* oklch */ color: oklch(31.3% 0.169 273.7);
Tailwind
colors: {
  custom: {
    50: '#6d57a9',
    500: '#1f1784',
    950: '#000000',
  },
}
SCSS
$custom: #1f1784;
$custom-light: #6d57a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1784",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 244.404,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31279,
    "c": 0.16941,
    "h": 273.7
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#1F1784
secondary
#AFB83F
accent
#ED3BE0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1784

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

Preview Lab → · Contrast checker → · Palette generator →

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