#1A1172#1A1172

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

Color values

HEX#1A1172
RGBrgb(26, 17, 114)
HSLhsl(246, 74%, 26%)
HSVhsv(246, 85%, 45%)
CMYKcmyk(77.2%, 85.1%, 0%, 55.3%)
CIE-LABlab(14.60, 37.00, -52.96)
CIE-LCHlch(14.60, 64.61, 304.94°)
OKLaboklab(28.02% 0.0113 -0.1531)
OKLCHoklch(28.02% 0.154 274.2)
XYZxyz(3.6627, 1.8350, 16.0775)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1172 #697211
analogous
#113872 #1A1172 #4A1172
triadic
#1A1172 #721A11 #11721A
tetradic
#1A1172 #721138 #697211 #11724A
square
#1A1172 #721138 #697211 #11724A
split-complementary
#1A1172 #724A11 #387211
monochromatic
#06041B #0E093D #1A1172 #2619A7 #3221DD

Accessibility & contrast

On white

15.36
#1A1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A1172
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1172#FFFFFF#000000##FFFFFF
##1A11721.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#002070
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1a1172;
/* rgb */ color: rgb(26, 17, 114);
/* oklch */ color: oklch(28.0% 0.154 274.2);
Tailwind
colors: {
  custom: {
    50: '#68529c',
    500: '#1a1172',
    950: '#000000',
  },
}
SCSS
$custom: #1a1172;
$custom-light: #68529c;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1172",
  "rgb": {
    "r": 26,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 245.567,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28016,
    "c": 0.15356,
    "h": 274.2
  },
  "luminance": 0.01835
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A1172

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

Preview Lab → · Contrast checker → · Palette generator →

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