#1A1F86#1A1F86

#1A1F86 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.166 H 270.5°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#1A1F86
RGBrgb(26, 31, 134)
HSLhsl(237, 68%, 31%)
HSVhsv(237, 81%, 53%)
CMYKcmyk(80.6%, 76.9%, 0%, 47.5%)
CIE-LABlab(19.72, 36.05, -57.24)
CIE-LCHlch(19.72, 67.65, 302.21°)
OKLaboklab(32.31% 0.0014 -0.1658)
OKLCHoklch(32.31% 0.166 270.5)
XYZxyz(5.2176, 2.9202, 22.8383)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F86 #86811A
analogous
#1A5586 #1A1F86 #4B1A86
triadic
#1A1F86 #861A1F #1F861A
tetradic
#1A1F86 #861A55 #86811A #1A864B
square
#1A1F86 #861A55 #86811A #1A864B
split-complementary
#1A1F86 #864B1A #55861A
monochromatic
#06071F #101353 #1A1F86 #242BB9 #4047DA

Accessibility & contrast

On white

13.26
#1A1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1A1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F86
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F86#FFFFFF#000000##FFFFFF
##1A1F861.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1a1f86;
/* rgb */ color: rgb(26, 31, 134);
/* oklch */ color: oklch(32.3% 0.166 270.5);
Tailwind
colors: {
  custom: {
    50: '#6c5caa',
    500: '#1a1f86',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f86;
$custom-light: #6c5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f86",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 237.222,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32314,
    "c": 0.16579,
    "h": 270.5
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#1A1F86
secondary
#B9B442
accent
#E23DEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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