#1A1796#1A1796

#1A1796 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.2% C 0.192 H 270.1°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#1A1796
RGBrgb(26, 23, 150)
HSLhsl(241, 73%, 34%)
HSVhsv(241, 85%, 59%)
CMYKcmyk(82.7%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.18, 45.72, -66.46)
CIE-LCHlch(20.18, 80.66, 304.52°)
OKLaboklab(33.2% 0.0004 -0.1924)
OKLCHoklch(33.2% 0.192 270.1)
XYZxyz(6.2356, 3.0337, 29.1052)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1796 #939617
analogous
#175496 #1A1796 #5A1796
triadic
#1A1796 #961A17 #17961A
tetradic
#1A1796 #961754 #939617 #17965A
square
#1A1796 #961754 #939617 #17965A
split-complementary
#1A1796 #965A17 #549617
monochromatic
#08072C #110F61 #1A1796 #231FCB #4945E2

Accessibility & contrast

On white

13.07
#1A1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1A1796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1796
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1796#FFFFFF#000000##FFFFFF
##1A17961.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003799
Deuteranopia (green-blind)
#002A94
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1a1796;
/* rgb */ color: rgb(26, 23, 150);
/* oklch */ color: oklch(33.2% 0.192 270.1);
Tailwind
colors: {
  custom: {
    50: '#7158b6',
    500: '#1a1796',
    950: '#000000',
  },
}
SCSS
$custom: #1a1796;
$custom-light: #7158b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1796",
  "rgb": {
    "r": 26,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 241.417,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33195,
    "c": 0.19236,
    "h": 270.1
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

primary
#1A1796
secondary
#C0C345
accent
#F038EC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1A1796

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

Preview Lab → · Contrast checker → · Palette generator →

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