#1A2172#1A2172

#1A2172 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.137 H 271.4°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#1A2172
RGBrgb(26, 33, 114)
HSLhsl(235, 63%, 27%)
HSVhsv(235, 77%, 45%)
CMYKcmyk(77.2%, 71.1%, 0%, 55.3%)
CIE-LABlab(18.02, 27.38, -47.31)
CIE-LCHlch(18.02, 54.66, 300.06°)
OKLaboklab(30.44% 0.0033 -0.1368)
OKLCHoklch(30.44% 0.137 271.4)
XYZxyz(4.0061, 2.5218, 16.1920)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2172 #726B1A
analogous
#1A4D72 #1A2172 #3F1A72
triadic
#1A2172 #721A21 #21721A
tetradic
#1A2172 #721A4D #726B1A #1A723F
square
#1A2172 #721A4D #726B1A #1A723F
split-complementary
#1A2172 #723F1A #4D721A
monochromatic
#060719 #0F1340 #1A2172 #252FA4 #3542D1

Accessibility & contrast

On white

13.96
#1A2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1A2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2172
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2172#FFFFFF#000000##FFFFFF
##1A21721.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1a2172;
/* rgb */ color: rgb(26, 33, 114);
/* oklch */ color: oklch(30.4% 0.137 271.4);
Tailwind
colors: {
  custom: {
    50: '#665c9b',
    500: '#1a2172',
    950: '#000000',
  },
}
SCSS
$custom: #1a2172;
$custom-light: #665c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2172",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 235.227,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30443,
    "c": 0.13689,
    "h": 271.4
  },
  "luminance": 0.02522
}

Semantic roles & 50–950 ramp

primary
#1A2172
secondary
#A79F41
accent
#D942E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1A2172

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

Preview Lab → · Contrast checker → · Palette generator →

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