#1F1D97#1F1D97

#1F1D97 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.187 H 271.4°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#1F1D97
RGBrgb(31, 29, 151)
HSLhsl(241, 68%, 35%)
HSVhsv(241, 81%, 59%)
CMYKcmyk(79.5%, 80.8%, 0%, 40.8%)
CIE-LABlab(21.59, 43.35, -64.72)
CIE-LCHlch(21.59, 77.90, 303.82°)
OKLaboklab(34.29% 0.0045 -0.1873)
OKLCHoklch(34.29% 0.187 271.4)
XYZxyz(6.5885, 3.4037, 29.5819)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D97 #95971D
analogous
#1D5897 #1F1D97 #5C1D97
triadic
#1F1D97 #971F1D #1D971F
tetradic
#1F1D97 #971D58 #95971D #1D975C
square
#1F1D97 #971D58 #95971D #1D975C
split-complementary
#1F1D97 #975C1D #58971D
monochromatic
#0A0930 #141364 #1F1D97 #2A27CA #5351DE

Accessibility & contrast

On white

12.49
#1F1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D97
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D97#FFFFFF#000000##FFFFFF
##1F1D971.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002D95
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f1d97;
/* rgb */ color: rgb(31, 29, 151);
/* oklch */ color: oklch(34.3% 0.187 271.4);
Tailwind
colors: {
  custom: {
    50: '#725cb7',
    500: '#1f1d97',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d97;
$custom-light: #725cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d97",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 240.984,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34289,
    "c": 0.1874,
    "h": 271.4
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#1F1D97
secondary
#BFC04F
accent
#EB3DE8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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