#1A2178#1A2178

#1A2178 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.145 H 271.0°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#1A2178
RGBrgb(26, 33, 120)
HSLhsl(236, 64%, 29%)
HSVhsv(236, 78%, 47%)
CMYKcmyk(78.3%, 72.5%, 0%, 52.9%)
CIE-LABlab(18.64, 29.66, -50.14)
CIE-LCHlch(18.64, 58.26, 300.61°)
OKLaboklab(31.08% 0.0026 -0.1451)
OKLCHoklch(31.08% 0.145 271)
XYZxyz(4.3589, 2.6629, 18.0499)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2178 #78711A
analogous
#1A5078 #1A2178 #421A78
triadic
#1A2178 #781A21 #21781A
tetradic
#1A2178 #781A50 #78711A #1A7842
square
#1A2178 #781A50 #78711A #1A7842
split-complementary
#1A2178 #78421A #50781A
monochromatic
#050719 #0F1346 #1A2178 #252FAA #3844D4

Accessibility & contrast

On white

13.70
#1A2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1A2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2178
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2178#FFFFFF#000000##FFFFFF
##1A21781.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1a2178;
/* rgb */ color: rgb(26, 33, 120);
/* oklch */ color: oklch(31.1% 0.145 271.0);
Tailwind
colors: {
  custom: {
    50: '#685ca0',
    500: '#1a2178',
    950: '#000000',
  },
}
SCSS
$custom: #1a2178;
$custom-light: #685ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2178",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 235.532,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31083,
    "c": 0.14514,
    "h": 271
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#1A2178
secondary
#ACA541
accent
#DB40E7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #1A2178

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

Preview Lab → · Contrast checker → · Palette generator →

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