#1F1585#1F1585

#1F1585 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.2% C 0.172 H 273.8°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#1F1585
RGBrgb(31, 21, 133)
HSLhsl(245, 73%, 30%)
HSVhsv(245, 84%, 52%)
CMYKcmyk(76.7%, 84.2%, 0%, 47.8%)
CIE-LABlab(18.01, 41.56, -59.44)
CIE-LCHlch(18.01, 72.52, 304.96°)
OKLaboklab(31.16% 0.0115 -0.1719)
OKLCHoklch(31.16% 0.172 273.8)
XYZxyz(5.0655, 2.5206, 22.4053)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1585 #7B8515
analogous
#154385 #1F1585 #571585
triadic
#1F1585 #851F15 #15851F
tetradic
#1F1585 #851543 #7B8515 #158557
square
#1F1585 #851543 #7B8515 #158557
split-complementary
#1F1585 #855715 #438515
monochromatic
#06041B #130D50 #1F1585 #2B1DBA #4435DF

Accessibility & contrast

On white

13.96
#1F1585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1585
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1585#FFFFFF#000000##FFFFFF
##1F15851.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1585;
/* rgb */ color: rgb(31, 21, 133);
/* oklch */ color: oklch(31.2% 0.172 273.8);
Tailwind
colors: {
  custom: {
    50: '#6e56aa',
    500: '#1f1585',
    950: '#000000',
  },
}
SCSS
$custom: #1f1585;
$custom-light: #6e56aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1585",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 133
  },
  "hsl": {
    "h": 245.357,
    "s": 72.727,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31163,
    "c": 0.17228,
    "h": 273.8
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#1F1585
secondary
#AEB93C
accent
#EF38DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1585

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

Preview Lab → · Contrast checker → · Palette generator →

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