#1A1F74#1A1F74

#1A1F74 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.142 H 271.7°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#1A1F74
RGBrgb(26, 31, 116)
HSLhsl(237, 63%, 28%)
HSVhsv(237, 78%, 45%)
CMYKcmyk(77.6%, 73.3%, 0%, 54.5%)
CIE-LABlab(17.74, 29.47, -49.06)
CIE-LCHlch(17.74, 57.23, 300.99°)
OKLaboklab(30.31% 0.0043 -0.142)
OKLCHoklch(30.31% 0.142 271.7)
XYZxyz(4.0673, 2.4601, 16.7801)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F74 #746F1A
analogous
#1A4C74 #1A1F74 #421A74
triadic
#1A1F74 #741A1F #1F741A
tetradic
#1A1F74 #741A4C #746F1A #1A7442
square
#1A1F74 #741A4C #746F1A #1A7442
split-complementary
#1A1F74 #74421A #4C741A
monochromatic
#060719 #0F1242 #1A1F74 #252CA6 #363FD2

Accessibility & contrast

On white

14.07
#1A1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1A1F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F74
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F74#FFFFFF#000000##FFFFFF
##1A1F741.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1a1f74;
/* rgb */ color: rgb(26, 31, 116);
/* oklch */ color: oklch(30.3% 0.142 271.7);
Tailwind
colors: {
  custom: {
    50: '#675b9d',
    500: '#1a1f74',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f74;
$custom-light: #675b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f74",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 236.667,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30305,
    "c": 0.14202,
    "h": 271.7
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

primary
#1A1F74
secondary
#A9A341
accent
#DD41E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1A1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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