#1F1671#1F1671

#1F1671 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.146 H 276.5°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#1F1671
RGBrgb(31, 22, 113)
HSLhsl(246, 67%, 26%)
HSVhsv(246, 81%, 44%)
CMYKcmyk(72.6%, 80.5%, 0%, 55.7%)
CIE-LABlab(15.78, 34.44, -50.33)
CIE-LCHlch(15.78, 60.99, 304.39°)
OKLaboklab(28.91% 0.0165 -0.1455)
OKLCHoklch(28.91% 0.146 276.5)
XYZxyz(3.8316, 2.0570, 15.8147)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1671 #687116
analogous
#163B71 #1F1671 #4D1671
triadic
#1F1671 #711F16 #16711F
tetradic
#1F1671 #71163B #687116 #16714D
square
#1F1671 #71163B #687116 #16714D
split-complementary
#1F1671 #714D16 #3B7116
monochromatic
#07051A #110C3E #1F1671 #2D20A4 #3C2CD6

Accessibility & contrast

On white

14.88
#1F1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1F1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1671
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1671#FFFFFF#000000##FFFFFF
##1F16711.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f1671;
/* rgb */ color: rgb(31, 22, 113);
/* oklch */ color: oklch(28.9% 0.146 276.5);
Tailwind
colors: {
  custom: {
    50: '#69559b',
    500: '#1f1671',
    950: '#000000',
  },
}
SCSS
$custom: #1f1671;
$custom-light: #69559b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1671",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 245.934,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28908,
    "c": 0.14641,
    "h": 276.5
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#1F1671
secondary
#9CA73C
accent
#EA3ED9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1671

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

Preview Lab → · Contrast checker → · Palette generator →

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