#1A1B7B#1A1B7B

#1A1B7B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.156 H 271.9°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#1A1B7B
RGBrgb(26, 27, 123)
HSLhsl(239, 65%, 29%)
HSVhsv(239, 79%, 48%)
CMYKcmyk(78.9%, 78%, 0%, 51.8%)
CIE-LABlab(17.61, 34.54, -53.76)
CIE-LCHlch(17.61, 63.89, 302.72°)
OKLaboklab(30.45% 0.0051 -0.1556)
OKLCHoklch(30.45% 0.156 271.9)
XYZxyz(4.3919, 2.4331, 18.9732)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1B7B #7B7A1A
analogous
#1A4C7B #1A1B7B #4A1A7B
triadic
#1A1B7B #7B1A1B #1B7B1A
tetradic
#1A1B7B #7B1A4C #7B7A1A #1A7B4A
square
#1A1B7B #7B1A4C #7B7A1A #1A7B4A
split-complementary
#1A1B7B #7B4A1A #4C7B1A
monochromatic
#050619 #0F1048 #1A1B7B #2526AE #3A3CD5

Accessibility & contrast

On white

14.12
#1A1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1A1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1B7B
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1B7B#FFFFFF#000000##FFFFFF
##1A1B7B1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1a1b7b;
/* rgb */ color: rgb(26, 27, 123);
/* oklch */ color: oklch(30.4% 0.156 271.9);
Tailwind
colors: {
  custom: {
    50: '#6959a2',
    500: '#1a1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #1a1b7b;
$custom-light: #6959a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1b7b",
  "rgb": {
    "r": 26,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 239.381,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30447,
    "c": 0.15569,
    "h": 271.9
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#1A1B7B
secondary
#AFAE42
accent
#E640E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1A1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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