#1F1984#1F1984

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

Color values

HEX#1F1984
RGBrgb(31, 25, 132)
HSLhsl(243, 68%, 31%)
HSVhsv(243, 81%, 52%)
CMYKcmyk(76.5%, 81.1%, 0%, 48.2%)
CIE-LABlab(18.59, 39.19, -57.84)
CIE-LCHlch(18.59, 69.87, 304.12°)
OKLaboklab(31.53% 0.0103 -0.1673)
OKLCHoklch(31.53% 0.168 273.5)
XYZxyz(5.0762, 2.6520, 22.0697)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1984 #7E8419
analogous
#194984 #1F1984 #541984
triadic
#1F1984 #841F19 #19841F
tetradic
#1F1984 #841949 #7E8419 #198454
square
#1F1984 #841949 #7E8419 #198454
split-complementary
#1F1984 #845419 #498419
monochromatic
#07061D #130F51 #1F1984 #2B23B7 #463DDA

Accessibility & contrast

On white

13.72
#1F1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F1984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1984
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1984#FFFFFF#000000##FFFFFF
##1F19841.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1984;
/* rgb */ color: rgb(31, 25, 132);
/* oklch */ color: oklch(31.5% 0.168 273.5);
Tailwind
colors: {
  custom: {
    50: '#6d58a9',
    500: '#1f1984',
    950: '#000000',
  },
}
SCSS
$custom: #1f1984;
$custom-light: #6d58a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1984",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 243.364,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31532,
    "c": 0.16766,
    "h": 273.5
  },
  "luminance": 0.02653
}

Semantic roles & 50–950 ramp

primary
#1F1984
secondary
#B1B841
accent
#EB3DE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1984

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

Preview Lab → · Contrast checker → · Palette generator →

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