#1F2191#1F2191

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

Color values

HEX#1F2191
RGBrgb(31, 33, 145)
HSLhsl(239, 65%, 35%)
HSVhsv(239, 79%, 57%)
CMYKcmyk(78.6%, 77.2%, 0%, 43.1%)
CIE-LABlab(21.66, 39.13, -60.89)
CIE-LCHlch(21.66, 72.38, 302.72°)
OKLaboklab(34.13% 0.0043 -0.1763)
OKLCHoklch(34.13% 0.176 271.4)
XYZxyz(6.2180, 3.4227, 27.1155)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2191 #918F1F
analogous
#1F5A91 #1F2191 #561F91
triadic
#1F2191 #911F21 #21911F
tetradic
#1F2191 #911F5A #918F1F #1F9156
square
#1F2191 #911F5A #918F1F #1F9156
split-complementary
#1F2191 #91561F #5A911F
monochromatic
#090A2C #14165F #1F2191 #2A2CC3 #5153DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F2191#FFFFFF#000000##FFFFFF
##1F21911.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)
#003A94
Deuteranopia (green-blind)
#002E8F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2191;
/* rgb */ color: rgb(31, 33, 145);
/* oklch */ color: oklch(34.1% 0.176 271.4);
Tailwind
colors: {
  custom: {
    50: '#705eb2',
    500: '#1f2191',
    950: '#000000',
  },
}
SCSS
$custom: #1f2191;
$custom-light: #705eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2191",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 238.947,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34133,
    "c": 0.17635,
    "h": 271.4
  },
  "luminance": 0.03423
}

Semantic roles & 50–950 ramp

primary
#1F2191
secondary
#BDBB4F
accent
#E540E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2191

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

Preview Lab → · Contrast checker → · Palette generator →

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