#1F1AC7#1F1AC7

#1F1AC7 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.8% C 0.244 H 268.7°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#1F1AC7
RGBrgb(31, 26, 199)
HSLhsl(242, 77%, 44%)
HSVhsv(242, 87%, 78%)
CMYKcmyk(84.4%, 86.9%, 0%, 22%)
CIE-LABlab(27.16, 59.37, -84.30)
CIE-LCHlch(27.16, 103.11, 305.15°)
OKLaboklab(39.85% -0.0055 -0.2439)
OKLCHoklch(39.85% 0.244 268.7)
XYZxyz(11.2398, 5.1522, 54.4238)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1AC7 #C2C71A
analogous
#1A6CC7 #1F1AC7 #761AC7
triadic
#1F1AC7 #C71F1A #1AC71F
tetradic
#1F1AC7 #C71A6C #C2C71A #1AC776
square
#1F1AC7 #C71A6C #C2C71A #1AC776
split-complementary
#1F1AC7 #C7761A #6CC71A
monochromatic
#0E0C5B #171391 #1F1AC7 #3E39E5 #736FEC

Accessibility & contrast

On white

10.34
#1F1AC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F1AC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1AC7
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1AC7#FFFFFF#000000##FFFFFF
##1F1AC71.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049CB
Deuteranopia (green-blind)
#0037C4
Tritanopia (blue-blind)
#005676
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f1ac7;
/* rgb */ color: rgb(31, 26, 199);
/* oklch */ color: oklch(39.8% 0.244 268.7);
Tailwind
colors: {
  custom: {
    50: '#7f5eda',
    500: '#1f1ac7',
    950: '#000000',
  },
}
SCSS
$custom: #1f1ac7;
$custom-light: #7f5eda;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1ac7",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 199
  },
  "hsl": {
    "h": 241.734,
    "s": 76.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.39845,
    "c": 0.24397,
    "h": 268.7
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

primary
#1F1AC7
secondary
#CFD26A
accent
#F334EE
background
#F8F5FD
surface
#F0EAFB
border
#CBC6D4
text
#0C0515
muted
#7D7983

Preview Lab

Preview with #1F1AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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