#1A1271#1A1271

#1A1271 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 28.0% C 0.151 H 274.2°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#1A1271
RGBrgb(26, 18, 113)
HSLhsl(245, 73%, 26%)
HSVhsv(245, 84%, 44%)
CMYKcmyk(77%, 84.1%, 0%, 55.7%)
CIE-LABlab(14.65, 36.16, -52.22)
CIE-LCHlch(14.65, 63.52, 304.70°)
OKLaboklab(28.02% 0.0112 -0.151)
OKLCHoklch(28.02% 0.151 274.2)
XYZxyz(3.6220, 1.8441, 15.7846)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1271 #697112
analogous
#123971 #1A1271 #491271
triadic
#1A1271 #711A12 #12711A
tetradic
#1A1271 #711239 #697112 #127149
square
#1A1271 #711239 #697112 #127149
split-complementary
#1A1271 #714912 #397112
monochromatic
#06041A #0E0A3C #1A1271 #261AA6 #3223DB

Accessibility & contrast

On white

15.34
#1A1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1A1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1271
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1271#FFFFFF#000000##FFFFFF
##1A12711.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00206F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1a1271;
/* rgb */ color: rgb(26, 18, 113);
/* oklch */ color: oklch(28.0% 0.151 274.2);
Tailwind
colors: {
  custom: {
    50: '#67539b',
    500: '#1a1271',
    950: '#000000',
  },
}
SCSS
$custom: #1a1271;
$custom-light: #67539b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1271",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 245.053,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28015,
    "c": 0.15146,
    "h": 274.2
  },
  "luminance": 0.01844
}

Semantic roles & 50–950 ramp

primary
#1A1271
secondary
#9EA837
accent
#EF39E0
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1A1271

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

Preview Lab → · Contrast checker → · Palette generator →

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