#1F1E91#1F1E91

#1F1E91 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.179 H 271.7°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#1F1E91
RGBrgb(31, 30, 145)
HSLhsl(241, 66%, 34%)
HSVhsv(241, 79%, 57%)
CMYKcmyk(78.6%, 79.3%, 0%, 43.1%)
CIE-LABlab(21.07, 40.82, -61.88)
CIE-LCHlch(21.07, 74.13, 303.42°)
OKLaboklab(33.72% 0.0055 -0.1791)
OKLCHoklch(33.72% 0.179 271.7)
XYZxyz(6.1385, 3.2635, 27.0890)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1E91 #90911E
analogous
#1E5791 #1F1E91 #591E91
triadic
#1F1E91 #911F1E #1E911F
tetradic
#1F1E91 #911E57 #90911E #1E9159
square
#1F1E91 #911E57 #90911E #1E9159
split-complementary
#1F1E91 #91591E #57911E
monochromatic
#09092C #14145E #1F1E91 #2A28C4 #504FDB

Accessibility & contrast

On white

12.71
#1F1E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F1E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1E91
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1E91#FFFFFF#000000##FFFFFF
##1F1E911.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003894
Deuteranopia (green-blind)
#002D8F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f1e91;
/* rgb */ color: rgb(31, 30, 145);
/* oklch */ color: oklch(33.7% 0.179 271.7);
Tailwind
colors: {
  custom: {
    50: '#705cb3',
    500: '#1f1e91',
    950: '#000000',
  },
}
SCSS
$custom: #1f1e91;
$custom-light: #705cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1e91",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 145
  },
  "hsl": {
    "h": 240.522,
    "s": 65.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.33715,
    "c": 0.1792,
    "h": 271.7
  },
  "luminance": 0.03264
}

Semantic roles & 50–950 ramp

primary
#1F1E91
secondary
#BCBD4D
accent
#E93FE7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1E91

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

Preview Lab → · Contrast checker → · Palette generator →

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