#1B41A8#1B41A8

#1B41A8 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.171 H 264.5°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#1B41A8
RGBrgb(27, 65, 168)
HSLhsl(224, 72%, 38%)
HSVhsv(224, 84%, 66%)
CMYKcmyk(83.9%, 61.3%, 0%, 34.1%)
CIE-LABlab(31.44, 26.81, -58.85)
CIE-LCHlch(31.44, 64.67, 294.49°)
OKLaboklab(41.89% -0.0164 -0.1703)
OKLCHoklch(41.89% 0.171 264.5)
XYZxyz(9.4077, 6.8396, 37.8625)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B41A8 #A8821B
analogous
#1B87A8 #1B41A8 #3B1BA8
triadic
#1B41A8 #A81B41 #41A81B
tetradic
#1B41A8 #A81B87 #A8821B #1BA83B
square
#1B41A8 #A81B87 #A8821B #1BA83B
split-complementary
#1B41A8 #A83B1B #87A81B
monochromatic
#0A183F #132D73 #1B41A8 #2456DC #597FE4

Accessibility & contrast

On white

8.87
#1B41A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#1B41A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B41A8
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B41A8#FFFFFF#000000##FFFFFF
##1B41A81.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1b41a8;
/* rgb */ color: rgb(27, 65, 168);
/* oklch */ color: oklch(41.9% 0.171 264.5);
Tailwind
colors: {
  custom: {
    50: '#7275c3',
    500: '#1b41a8',
    950: '#000000',
  },
}
SCSS
$custom: #1b41a8;
$custom-light: #7275c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b41a8",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 168
  },
  "hsl": {
    "h": 223.83,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41892,
    "c": 0.17108,
    "h": 264.5
  },
  "luminance": 0.06841
}

Semantic roles & 50–950 ramp

primary
#1B41A8
secondary
#C8A957
accent
#BE39EF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1B41A8

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

Preview Lab → · Contrast checker → · Palette generator →

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