#1A1F79#1A1F79

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

Color values

HEX#1A1F79
RGBrgb(26, 31, 121)
HSLhsl(237, 65%, 29%)
HSVhsv(237, 79%, 47%)
CMYKcmyk(78.5%, 74.4%, 0%, 52.5%)
CIE-LABlab(18.27, 31.33, -51.38)
CIE-LCHlch(18.27, 60.18, 301.37°)
OKLaboklab(30.85% 0.0035 -0.1487)
OKLCHoklch(30.85% 0.149 271.4)
XYZxyz(4.3660, 2.5796, 18.3533)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F79 #79741A
analogous
#1A4F79 #1A1F79 #451A79
triadic
#1A1F79 #791A1F #1F791A
tetradic
#1A1F79 #791A4F #79741A #1A7945
square
#1A1F79 #791A4F #79741A #1A7945
split-complementary
#1A1F79 #79451A #4F791A
monochromatic
#050619 #0F1247 #1A1F79 #252CAB #3941D4

Accessibility & contrast

On white

13.85
#1A1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1A1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F79
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F79#FFFFFF#000000##FFFFFF
##1A1F791.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1a1f79;
/* rgb */ color: rgb(26, 31, 121);
/* oklch */ color: oklch(30.9% 0.149 271.4);
Tailwind
colors: {
  custom: {
    50: '#685ba1',
    500: '#1a1f79',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f79;
$custom-light: #685ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f79",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 236.842,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30852,
    "c": 0.14878,
    "h": 271.4
  },
  "luminance": 0.0258
}

Semantic roles & 50–950 ramp

primary
#1A1F79
secondary
#ADA841
accent
#DF40E8
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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