#1F1A96#1F1A96

#1F1A96 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.189 H 271.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1F1A96
RGBrgb(31, 26, 150)
HSLhsl(242, 70%, 35%)
HSVhsv(242, 83%, 59%)
CMYKcmyk(79.3%, 82.7%, 0%, 41.2%)
CIE-LABlab(20.95, 44.56, -65.17)
CIE-LCHlch(20.95, 78.95, 304.36°)
OKLaboklab(33.8% 0.0056 -0.1886)
OKLCHoklch(33.8% 0.189 271.7)
XYZxyz(6.4376, 3.2314, 29.1327)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1A96 #91961A
analogous
#1A5396 #1F1A96 #5D1A96
triadic
#1F1A96 #961F1A #1A961F
tetradic
#1F1A96 #961A53 #91961A #1A965D
square
#1F1A96 #961A53 #91961A #1A965D
split-complementary
#1F1A96 #965D1A #53961A
monochromatic
#09082E #141162 #1F1A96 #2A23CA #514BE0

Accessibility & contrast

On white

12.76
#1F1A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F1A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1A96
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1A96#FFFFFF#000000##FFFFFF
##1F1A961.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002C94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f1a96;
/* rgb */ color: rgb(31, 26, 150);
/* oklch */ color: oklch(33.8% 0.189 271.7);
Tailwind
colors: {
  custom: {
    50: '#725ab6',
    500: '#1f1a96',
    950: '#000000',
  },
}
SCSS
$custom: #1f1a96;
$custom-light: #725ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1a96",
  "rgb": {
    "r": 31,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 242.419,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.33804,
    "c": 0.18869,
    "h": 271.7
  },
  "luminance": 0.03232
}

Semantic roles & 50–950 ramp

primary
#1F1A96
secondary
#BDC24A
accent
#ED3BE6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1A96

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

Preview Lab → · Contrast checker → · Palette generator →

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