#1F1584#1F1584

#1F1584 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.171 H 273.9°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#1F1584
RGBrgb(31, 21, 132)
HSLhsl(245, 73%, 30%)
HSVhsv(245, 84%, 52%)
CMYKcmyk(76.5%, 84.1%, 0%, 48.2%)
CIE-LABlab(17.89, 41.24, -59.01)
CIE-LCHlch(17.89, 71.99, 304.95°)
OKLaboklab(31.04% 0.0118 -0.1707)
OKLCHoklch(31.04% 0.171 273.9)
XYZxyz(4.9967, 2.4931, 22.0432)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1584 #7A8415
analogous
#154384 #1F1584 #561584
triadic
#1F1584 #841F15 #15841F
tetradic
#1F1584 #841543 #7A8415 #158456
square
#1F1584 #841543 #7A8415 #158456
split-complementary
#1F1584 #845615 #438415
monochromatic
#06041A #130D4F #1F1584 #2B1DB9 #4435DF

Accessibility & contrast

On white

14.01
#1F1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1F1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1584
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1584#FFFFFF#000000##FFFFFF
##1F15841.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1584;
/* rgb */ color: rgb(31, 21, 132);
/* oklch */ color: oklch(31.0% 0.171 273.9);
Tailwind
colors: {
  custom: {
    50: '#6e56a9',
    500: '#1f1584',
    950: '#000000',
  },
}
SCSS
$custom: #1f1584;
$custom-light: #6e56a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1584",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 245.405,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.31041,
    "c": 0.17106,
    "h": 273.9
  },
  "luminance": 0.02494
}

Semantic roles & 50–950 ramp

primary
#1F1584
secondary
#ADB93C
accent
#EF39DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1584

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

Preview Lab → · Contrast checker → · Palette generator →

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