#1F1DA7#1F1DA7

#1F1DA7 is a dark, highly saturated blue. Relative luminance 0.040; OKLCH L 36.2% C 0.206 H 270.3°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#1F1DA7
RGBrgb(31, 29, 167)
HSLhsl(241, 70%, 38%)
HSVhsv(241, 83%, 65%)
CMYKcmyk(81.4%, 82.6%, 0%, 34.5%)
CIE-LABlab(23.54, 48.50, -71.27)
CIE-LCHlch(23.54, 86.21, 304.24°)
OKLaboklab(36.2% 0.001 -0.2063)
OKLCHoklch(36.2% 0.206 270.3)
XYZxyz(7.9771, 3.9591, 36.8955)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1DA7 #A5A71D
analogous
#1D60A7 #1F1DA7 #641DA7
triadic
#1F1DA7 #A71F1D #1DA71F
tetradic
#1F1DA7 #A71D60 #A5A71D #1DA764
square
#1F1DA7 #A71D60 #A5A71D #1DA764
split-complementary
#1F1DA7 #A7641D #60A71D
monochromatic
#0C0B3F #151473 #1F1DA7 #2A28DA #5E5CE3

Accessibility & contrast

On white

11.72
#1F1DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F1DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1DA7
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1DA7#FFFFFF#000000##FFFFFF
##1F1DA71.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0031A5
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f1da7;
/* rgb */ color: rgb(31, 29, 167);
/* oklch */ color: oklch(36.2% 0.206 270.3);
Tailwind
colors: {
  custom: {
    50: '#765dc3',
    500: '#1f1da7',
    950: '#000000',
  },
}
SCSS
$custom: #1f1da7;
$custom-light: #765dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1da7",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 240.87,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36201,
    "c": 0.20631,
    "h": 270.3
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#1F1DA7
secondary
#C5C759
accent
#ED3BEB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0A0413
muted
#7C7982

Preview Lab

Preview with #1F1DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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