#1F1D9E#1F1D9E

#1F1D9E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.196 H 270.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#1F1D9E
RGBrgb(31, 29, 158)
HSLhsl(241, 69%, 37%)
HSVhsv(241, 82%, 62%)
CMYKcmyk(80.4%, 81.6%, 0%, 38%)
CIE-LABlab(22.44, 45.63, -67.62)
CIE-LCHlch(22.44, 81.58, 304.01°)
OKLaboklab(35.12% 0.003 -0.1957)
OKLCHoklch(35.12% 0.196 270.9)
XYZxyz(7.1739, 3.6378, 32.6652)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D9E #9C9E1D
analogous
#1D5C9E #1F1D9E #601D9E
triadic
#1F1D9E #9E1F1D #1D9E1F
tetradic
#1F1D9E #9E1D5C #9C9E1D #1D9E60
square
#1F1D9E #9E1D5C #9C9E1D #1D9E60
split-complementary
#1F1D9E #9E601D #5C9E1D
monochromatic
#0B0A37 #15146A #1F1D9E #2926D2 #5856E0

Accessibility & contrast

On white

12.15
#1F1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D9E
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D9E#FFFFFF#000000##FFFFFF
##1F1D9E1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#002F9C
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f1d9e;
/* rgb */ color: rgb(31, 29, 158);
/* oklch */ color: oklch(35.1% 0.196 270.9);
Tailwind
colors: {
  custom: {
    50: '#745cbc',
    500: '#1f1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d9e;
$custom-light: #745cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d9e",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 240.93,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3512,
    "c": 0.19577,
    "h": 270.9
  },
  "luminance": 0.03639
}

Semantic roles & 50–950 ramp

primary
#1F1D9E
secondary
#C1C354
accent
#EC3CE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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