#1A1B7E#1A1B7E

#1A1B7E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.160 H 271.6°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#1A1B7E
RGBrgb(26, 27, 126)
HSLhsl(239, 66%, 30%)
HSVhsv(239, 79%, 49%)
CMYKcmyk(79.4%, 78.6%, 0%, 50.6%)
CIE-LABlab(17.96, 35.60, -55.09)
CIE-LCHlch(17.96, 65.59, 302.87°)
OKLaboklab(30.8% 0.0045 -0.1595)
OKLCHoklch(30.8% 0.16 271.6)
XYZxyz(4.5826, 2.5093, 19.9775)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1B7E #7E7D1A
analogous
#1A4D7E #1A1B7E #4B1A7E
triadic
#1A1B7E #7E1A1B #1B7E1A
tetradic
#1A1B7E #7E1A4D #7E7D1A #1A7E4B
square
#1A1B7E #7E1A4D #7E7D1A #1A7E4B
split-complementary
#1A1B7E #7E4B1A #4D7E1A
monochromatic
#050519 #10104B #1A1B7E #2426B1 #3C3DD7

Accessibility & contrast

On white

13.98
#1A1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A1B7E
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1B7E#FFFFFF#000000##FFFFFF
##1A1B7E1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1a1b7e;
/* rgb */ color: rgb(26, 27, 126);
/* oklch */ color: oklch(30.8% 0.160 271.6);
Tailwind
colors: {
  custom: {
    50: '#6a59a5',
    500: '#1a1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #1a1b7e;
$custom-light: #6a59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1b7e",
  "rgb": {
    "r": 26,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 239.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30796,
    "c": 0.15956,
    "h": 271.6
  },
  "luminance": 0.0251
}

Semantic roles & 50–950 ramp

primary
#1A1B7E
secondary
#B2B142
accent
#E73FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1A1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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