#1A2174#1A2174

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

Color values

HEX#1A2174
RGBrgb(26, 33, 116)
HSLhsl(235, 63%, 28%)
HSVhsv(235, 78%, 45%)
CMYKcmyk(77.6%, 71.6%, 0%, 54.5%)
CIE-LABlab(18.22, 28.15, -48.26)
CIE-LCHlch(18.22, 55.87, 300.25°)
OKLaboklab(30.65% 0.0031 -0.1396)
OKLCHoklch(30.65% 0.14 271.3)
XYZxyz(4.1212, 2.5678, 16.7981)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2174 #746D1A
analogous
#1A4E74 #1A2174 #401A74
triadic
#1A2174 #741A21 #21741A
tetradic
#1A2174 #741A4E #746D1A #1A7440
square
#1A2174 #741A4E #746D1A #1A7440
split-complementary
#1A2174 #74401A #4E741A
monochromatic
#060719 #0F1342 #1A2174 #252FA6 #3642D2

Accessibility & contrast

On white

13.87
#1A2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A2174
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2174#FFFFFF#000000##FFFFFF
##1A21741.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1a2174;
/* rgb */ color: rgb(26, 33, 116);
/* oklch */ color: oklch(30.7% 0.140 271.3);
Tailwind
colors: {
  custom: {
    50: '#665c9d',
    500: '#1a2174',
    950: '#000000',
  },
}
SCSS
$custom: #1a2174;
$custom-light: #665c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2174",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 235.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30655,
    "c": 0.13966,
    "h": 271.3
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#1A2174
secondary
#A9A141
accent
#DA41E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1A2174

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

Preview Lab → · Contrast checker → · Palette generator →

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