#1F1A89#1F1A89

#1F1A89 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.173 H 272.9°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#1F1A89
RGBrgb(31, 26, 137)
HSLhsl(243, 68%, 32%)
HSVhsv(243, 81%, 54%)
CMYKcmyk(77.4%, 81%, 0%, 46.3%)
CIE-LABlab(19.37, 40.31, -59.69)
CIE-LCHlch(19.37, 72.03, 304.03°)
OKLaboklab(32.25% 0.0087 -0.1727)
OKLCHoklch(32.25% 0.173 272.9)
XYZxyz(5.4483, 2.8357, 23.9223)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1A89 #84891A
analogous
#1A4C89 #1F1A89 #571A89
triadic
#1F1A89 #891F1A #1A891F
tetradic
#1F1A89 #891A4C #84891A #1A8957
square
#1F1A89 #891A4C #84891A #1A8957
split-complementary
#1F1A89 #89571A #4C891A
monochromatic
#080622 #131056 #1F1A89 #2B24BC #4942DB

Accessibility & contrast

On white

13.40
#1F1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F1A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1A89
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1A89#FFFFFF#000000##FFFFFF
##1F1A891.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002987
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f1a89;
/* rgb */ color: rgb(31, 26, 137);
/* oklch */ color: oklch(32.3% 0.173 272.9);
Tailwind
colors: {
  custom: {
    50: '#6e59ad',
    500: '#1f1a89',
    950: '#000000',
  },
}
SCSS
$custom: #1f1a89;
$custom-light: #6e59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1a89",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 242.703,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32251,
    "c": 0.17295,
    "h": 272.9
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#1F1A89
secondary
#B7BC43
accent
#EB3DE3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #1F1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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