#1F1C91#1F1C91

#1F1C91 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.181 H 271.9°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#1F1C91
RGBrgb(31, 28, 145)
HSLhsl(242, 68%, 34%)
HSVhsv(242, 81%, 57%)
CMYKcmyk(78.6%, 80.7%, 0%, 43.1%)
CIE-LABlab(20.69, 41.90, -62.50)
CIE-LCHlch(20.69, 75.24, 303.84°)
OKLaboklab(33.45% 0.0061 -0.1809)
OKLCHoklch(33.45% 0.181 271.9)
XYZxyz(6.0894, 3.1655, 27.0726)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1C91 #8E911C
analogous
#1C5491 #1F1C91 #5A1C91
triadic
#1F1C91 #911F1C #1C911F
tetradic
#1F1C91 #911C54 #8E911C #1C915A
square
#1F1C91 #911C54 #8E911C #1C915A
split-complementary
#1F1C91 #915A1C #54911C
monochromatic
#09082A #14125E #1F1C91 #2A26C4 #4F4BDC

Accessibility & contrast

On white

12.86
#1F1C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F1C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1C91
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1C91#FFFFFF#000000##FFFFFF
##1F1C911.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003794
Deuteranopia (green-blind)
#002C8F
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f1c91;
/* rgb */ color: rgb(31, 28, 145);
/* oklch */ color: oklch(33.5% 0.181 271.9);
Tailwind
colors: {
  custom: {
    50: '#705bb3',
    500: '#1f1c91',
    950: '#000000',
  },
}
SCSS
$custom: #1f1c91;
$custom-light: #705bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1c91",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 241.538,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33453,
    "c": 0.18099,
    "h": 271.9
  },
  "luminance": 0.03166
}

Semantic roles & 50–950 ramp

primary
#1F1C91
secondary
#BBBE4A
accent
#EB3DE6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1C91

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

Preview Lab → · Contrast checker → · Palette generator →

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