#1A167C#1A167C

#1A167C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.162 H 272.4°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#1A167C
RGBrgb(26, 22, 124)
HSLhsl(242, 70%, 29%)
HSVhsv(242, 82%, 49%)
CMYKcmyk(79%, 82.3%, 0%, 51.4%)
CIE-LABlab(16.74, 37.73, -55.84)
CIE-LCHlch(16.74, 67.39, 304.04°)
OKLaboklab(29.87% 0.0068 -0.1616)
OKLCHoklch(29.87% 0.162 272.4)
XYZxyz(4.3498, 2.2482, 19.2696)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A167C #787C16
analogous
#16457C #1A167C #4D167C
triadic
#1A167C #7C1A16 #167C1A
tetradic
#1A167C #7C1645 #787C16 #167C4D
square
#1A167C #7C1645 #787C16 #167C4D
split-complementary
#1A167C #7C4D16 #457C16
monochromatic
#05051A #0F0D48 #1A167C #251FB0 #3832DB

Accessibility & contrast

On white

14.48
#1A167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1A167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A167C
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A167C#FFFFFF#000000##FFFFFF
##1A167C1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00247A
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1a167c;
/* rgb */ color: rgb(26, 22, 124);
/* oklch */ color: oklch(29.9% 0.162 272.4);
Tailwind
colors: {
  custom: {
    50: '#6a56a3',
    500: '#1a167c',
    950: '#000000',
  },
}
SCSS
$custom: #1a167c;
$custom-light: #6a56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a167c",
  "rgb": {
    "r": 26,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 242.353,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29868,
    "c": 0.16174,
    "h": 272.4
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#1A167C
secondary
#ACB13D
accent
#ED3BE6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1A167C

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

Preview Lab → · Contrast checker → · Palette generator →

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