#1A2179#1A2179

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

Color values

HEX#1A2179
RGBrgb(26, 33, 121)
HSLhsl(236, 65%, 29%)
HSVhsv(236, 79%, 47%)
CMYKcmyk(78.5%, 72.7%, 0%, 52.5%)
CIE-LABlab(18.75, 30.04, -50.61)
CIE-LCHlch(18.75, 58.85, 300.69°)
OKLaboklab(31.19% 0.0025 -0.1465)
OKLCHoklch(31.19% 0.147 271)
XYZxyz(4.4199, 2.6873, 18.3712)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2179 #79721A
analogous
#1A5179 #1A2179 #431A79
triadic
#1A2179 #791A21 #21791A
tetradic
#1A2179 #791A51 #79721A #1A7943
square
#1A2179 #791A51 #79721A #1A7943
split-complementary
#1A2179 #79431A #51791A
monochromatic
#050719 #0F1347 #1A2179 #252FAB #3944D4

Accessibility & contrast

On white

13.66
#1A2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1A2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2179
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2179#FFFFFF#000000##FFFFFF
##1A21791.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1a2179;
/* rgb */ color: rgb(26, 33, 121);
/* oklch */ color: oklch(31.2% 0.146 271.0);
Tailwind
colors: {
  custom: {
    50: '#685da1',
    500: '#1a2179',
    950: '#000000',
  },
}
SCSS
$custom: #1a2179;
$custom-light: #685da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2179",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 235.579,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3119,
    "c": 0.1465,
    "h": 271
  },
  "luminance": 0.02688
}

Semantic roles & 50–950 ramp

primary
#1A2179
secondary
#ADA541
accent
#DB40E8
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A2179

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

Preview Lab → · Contrast checker → · Palette generator →

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