#1A1171#1A1171

#1A1171 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.152 H 274.3°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#1A1171
RGBrgb(26, 17, 113)
HSLhsl(246, 74%, 25%)
HSVhsv(246, 85%, 44%)
CMYKcmyk(77%, 85%, 0%, 55.7%)
CIE-LABlab(14.47, 36.67, -52.52)
CIE-LCHlch(14.47, 64.05, 304.93°)
OKLaboklab(27.89% 0.0115 -0.1519)
OKLCHoklch(27.89% 0.152 274.3)
XYZxyz(3.6061, 1.8124, 15.7794)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1171 #687111
analogous
#113871 #1A1171 #4A1171
triadic
#1A1171 #711A11 #11711A
tetradic
#1A1171 #711138 #687111 #11714A
square
#1A1171 #711138 #687111 #11714A
split-complementary
#1A1171 #714A11 #387111
monochromatic
#06041B #0E093C #1A1171 #2619A6 #3221DB

Accessibility & contrast

On white

15.41
#1A1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1A1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1171
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1171#FFFFFF#000000##FFFFFF
##1A11711.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a1171;
/* rgb */ color: rgb(26, 17, 113);
/* oklch */ color: oklch(27.9% 0.152 274.3);
Tailwind
colors: {
  custom: {
    50: '#67529b',
    500: '#1a1171',
    950: '#000000',
  },
}
SCSS
$custom: #1a1171;
$custom-light: #67529b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1171",
  "rgb": {
    "r": 26,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 245.625,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.27892,
    "c": 0.15232,
    "h": 274.3
  },
  "luminance": 0.01813
}

Semantic roles & 50–950 ramp

primary
#1A1171
secondary
#9DA836
accent
#F137DF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1A1171

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

Preview Lab → · Contrast checker → · Palette generator →

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