#1F1C99#1F1C99

#1F1C99 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.191 H 271.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1F1C99
RGBrgb(31, 28, 153)
HSLhsl(241, 69%, 35%)
HSVhsv(241, 82%, 60%)
CMYKcmyk(79.7%, 81.7%, 0%, 40%)
CIE-LABlab(21.66, 44.52, -65.84)
CIE-LCHlch(21.66, 79.48, 304.06°)
OKLaboklab(34.4% 0.0043 -0.1906)
OKLCHoklch(34.4% 0.191 271.3)
XYZxyz(6.7282, 3.4210, 30.4365)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1C99 #96991C
analogous
#1C5799 #1F1C99 #5D1C99
triadic
#1F1C99 #991F1C #1C991F
tetradic
#1F1C99 #991C57 #96991C #1C995D
square
#1F1C99 #991C57 #96991C #1C995D
split-complementary
#1F1C99 #995D1C #57991C
monochromatic
#0A0932 #151365 #1F1C99 #2925CD #5450DF

Accessibility & contrast

On white

12.47
#1F1C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1C99
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1C99#FFFFFF#000000##FFFFFF
##1F1C991.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#002D97
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f1c99;
/* rgb */ color: rgb(31, 28, 153);
/* oklch */ color: oklch(34.4% 0.191 271.3);
Tailwind
colors: {
  custom: {
    50: '#725cb8',
    500: '#1f1c99',
    950: '#000000',
  },
}
SCSS
$custom: #1f1c99;
$custom-light: #725cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1c99",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 241.44,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34403,
    "c": 0.19065,
    "h": 271.3
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#1F1C99
secondary
#BFC24F
accent
#EC3CE8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1C99

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

Preview Lab → · Contrast checker → · Palette generator →

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