#1A1F78#1A1F78

#1A1F78 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.147 H 271.4°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#1A1F78
RGBrgb(26, 31, 120)
HSLhsl(237, 64%, 29%)
HSVhsv(237, 78%, 47%)
CMYKcmyk(78.3%, 74.2%, 0%, 52.9%)
CIE-LABlab(18.17, 30.96, -50.92)
CIE-LCHlch(18.17, 59.60, 301.30°)
OKLaboklab(30.74% 0.0037 -0.1474)
OKLCHoklch(30.74% 0.147 271.4)
XYZxyz(4.3050, 2.5552, 18.0320)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F78 #78731A
analogous
#1A4E78 #1A1F78 #441A78
triadic
#1A1F78 #781A1F #1F781A
tetradic
#1A1F78 #781A4E #78731A #1A7844
square
#1A1F78 #781A4E #78731A #1A7844
split-complementary
#1A1F78 #78441A #4E781A
monochromatic
#050619 #0F1246 #1A1F78 #252CAA #3841D4

Accessibility & contrast

On white

13.90
#1A1F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1A1F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F78
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F78#FFFFFF#000000##FFFFFF
##1A1F781.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1a1f78;
/* rgb */ color: rgb(26, 31, 120);
/* oklch */ color: oklch(30.7% 0.147 271.4);
Tailwind
colors: {
  custom: {
    50: '#685ba0',
    500: '#1a1f78',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f78;
$custom-light: #685ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f78",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 236.809,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30742,
    "c": 0.14744,
    "h": 271.4
  },
  "luminance": 0.02556
}

Semantic roles & 50–950 ramp

primary
#1A1F78
secondary
#ACA741
accent
#DF40E7
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A1F78

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

Preview Lab → · Contrast checker → · Palette generator →

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