#1A1F97#1A1F97

#1A1F97 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.187 H 269.5°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#1A1F97
RGBrgb(26, 31, 151)
HSLhsl(238, 71%, 35%)
HSVhsv(238, 83%, 59%)
CMYKcmyk(82.8%, 79.5%, 0%, 40.8%)
CIE-LABlab(21.70, 41.96, -64.55)
CIE-LCHlch(21.70, 76.99, 303.03°)
OKLaboklab(34.29% -0.0016 -0.187)
OKLCHoklch(34.29% 0.187 269.5)
XYZxyz(6.5000, 3.4332, 29.5922)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F97 #97921A
analogous
#1A5E97 #1A1F97 #541A97
triadic
#1A1F97 #971A1F #1F971A
tetradic
#1A1F97 #971A5E #97921A #1A9754
square
#1A1F97 #971A5E #97921A #1A9754
split-complementary
#1A1F97 #97541A #5E971A
monochromatic
#080A2F #111463 #1A1F97 #232ACB #4B51E0

Accessibility & contrast

On white

12.45
#1A1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1A1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F97
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F97#FFFFFF#000000##FFFFFF
##1A1F971.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002E95
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1a1f97;
/* rgb */ color: rgb(26, 31, 151);
/* oklch */ color: oklch(34.3% 0.187 269.5);
Tailwind
colors: {
  custom: {
    50: '#705db7',
    500: '#1a1f97',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f97;
$custom-light: #705db7;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f97",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 237.6,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34293,
    "c": 0.18698,
    "h": 269.5
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#1A1F97
secondary
#C2BD4B
accent
#E63AED
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1A1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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