#1A2271#1A2271

#1A2271 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.134 H 271.2°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#1A2271
RGBrgb(26, 34, 113)
HSLhsl(234, 63%, 27%)
HSVhsv(234, 77%, 44%)
CMYKcmyk(77%, 69.9%, 0%, 55.7%)
CIE-LABlab(18.17, 26.32, -46.42)
CIE-LCHlch(18.17, 53.36, 299.55°)
OKLaboklab(30.52% 0.0028 -0.1342)
OKLCHoklch(30.52% 0.134 271.2)
XYZxyz(3.9777, 2.5555, 15.9032)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2271 #71691A
analogous
#1A4D71 #1A2271 #3E1A71
triadic
#1A2271 #711A22 #22711A
tetradic
#1A2271 #711A4D #71691A #1A713E
square
#1A2271 #711A4D #71691A #1A713E
split-complementary
#1A2271 #713E1A #4D711A
monochromatic
#060719 #0F133F #1A2271 #2531A3 #3543D0

Accessibility & contrast

On white

13.90
#1A2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A2271
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2271#FFFFFF#000000##FFFFFF
##1A22711.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a2271;
/* rgb */ color: rgb(26, 34, 113);
/* oklch */ color: oklch(30.5% 0.134 271.2);
Tailwind
colors: {
  custom: {
    50: '#665d9b',
    500: '#1a2271',
    950: '#000000',
  },
}
SCSS
$custom: #1a2271;
$custom-light: #665d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2271",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 234.483,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30522,
    "c": 0.13427,
    "h": 271.2
  },
  "luminance": 0.02556
}

Semantic roles & 50–950 ramp

primary
#1A2271
secondary
#A69D41
accent
#D742E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1A2271

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

Preview Lab → · Contrast checker → · Palette generator →

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