#1F1D91#1F1D91

#1F1D91 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.180 H 271.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#1F1D91
RGBrgb(31, 29, 145)
HSLhsl(241, 67%, 34%)
HSVhsv(241, 80%, 57%)
CMYKcmyk(78.6%, 80%, 0%, 43.1%)
CIE-LABlab(20.88, 41.37, -62.19)
CIE-LCHlch(20.88, 74.69, 303.63°)
OKLaboklab(33.58% 0.0058 -0.18)
OKLCHoklch(33.58% 0.18 271.8)
XYZxyz(6.1136, 3.2137, 27.0807)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D91 #8F911D
analogous
#1D5591 #1F1D91 #591D91
triadic
#1F1D91 #911F1D #1D911F
tetradic
#1F1D91 #911D55 #8F911D #1D9159
square
#1F1D91 #911D55 #8F911D #1D9159
split-complementary
#1F1D91 #91591D #55911D
monochromatic
#09092B #14135E #1F1D91 #2A27C4 #4F4DDB

Accessibility & contrast

On white

12.78
#1F1D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F1D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D91
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D91#FFFFFF#000000##FFFFFF
##1F1D911.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1d91;
/* rgb */ color: rgb(31, 29, 145);
/* oklch */ color: oklch(33.6% 0.180 271.8);
Tailwind
colors: {
  custom: {
    50: '#705cb3',
    500: '#1f1d91',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d91;
$custom-light: #705cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d91",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 145
  },
  "hsl": {
    "h": 241.034,
    "s": 66.667,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33582,
    "c": 0.1801,
    "h": 271.8
  },
  "luminance": 0.03214
}

Semantic roles & 50–950 ramp

primary
#1F1D91
secondary
#BCBE4C
accent
#EA3EE7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1D91

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

Preview Lab → · Contrast checker → · Palette generator →

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