#1A168C#1A168C

#1A168C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.181 H 270.9°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#1A168C
RGBrgb(26, 22, 140)
HSLhsl(242, 73%, 32%)
HSVhsv(242, 84%, 55%)
CMYKcmyk(81.4%, 84.3%, 0%, 45.1%)
CIE-LABlab(18.74, 43.00, -62.63)
CIE-LCHlch(18.74, 75.97, 304.47°)
OKLaboklab(31.84% 0.003 -0.1813)
OKLCHoklch(31.84% 0.181 270.9)
XYZxyz(5.4449, 2.6863, 25.0374)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A168C #888C16
analogous
#164D8C #1A168C #55168C
triadic
#1A168C #8C1A16 #168C1A
tetradic
#1A168C #8C164D #888C16 #168C55
square
#1A168C #8C164D #888C16 #168C55
split-complementary
#1A168C #8C5516 #4D8C16
monochromatic
#060522 #100E57 #1A168C #241EC1 #423CE0

Accessibility & contrast

On white

13.66
#1A168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1A168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A168C
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A168C#FFFFFF#000000##FFFFFF
##1A168C1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1a168c;
/* rgb */ color: rgb(26, 22, 140);
/* oklch */ color: oklch(31.8% 0.181 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e57af',
    500: '#1a168c',
    950: '#000000',
  },
}
SCSS
$custom: #1a168c;
$custom-light: #6e57af;
$custom-dark: #000000;
JSON
{
  "hex": "#1a168c",
  "rgb": {
    "r": 26,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 242.034,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.31837,
    "c": 0.18129,
    "h": 270.9
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#1A168C
secondary
#BBC03E
accent
#F038E9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1A168C

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

Preview Lab → · Contrast checker → · Palette generator →

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