#1B41A6#1B41A6

#1B41A6 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.168 H 264.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#1B41A6
RGBrgb(27, 65, 166)
HSLhsl(224, 72%, 38%)
HSVhsv(224, 84%, 65%)
CMYKcmyk(83.7%, 60.8%, 0%, 34.9%)
CIE-LABlab(31.27, 26.02, -57.93)
CIE-LCHlch(31.27, 63.51, 294.19°)
OKLaboklab(41.71% -0.0165 -0.1676)
OKLCHoklch(41.71% 0.168 264.4)
XYZxyz(9.2228, 6.7657, 36.8888)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B41A6 #A6801B
analogous
#1B86A6 #1B41A6 #3A1BA6
triadic
#1B41A6 #A61B41 #41A61B
tetradic
#1B41A6 #A61B86 #A6801B #1BA63A
square
#1B41A6 #A61B86 #A6801B #1BA63A
split-complementary
#1B41A6 #A63A1B #86A61B
monochromatic
#0A183D #122C71 #1B41A6 #2456DB #587EE4

Accessibility & contrast

On white

8.92
#1B41A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#1B41A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B41A6
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B41A6#FFFFFF#000000##FFFFFF
##1B41A61.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1b41a6;
/* rgb */ color: rgb(27, 65, 166);
/* oklch */ color: oklch(41.7% 0.168 264.4);
Tailwind
colors: {
  custom: {
    50: '#7175c1',
    500: '#1b41a6',
    950: '#000000',
  },
}
SCSS
$custom: #1b41a6;
$custom-light: #7175c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b41a6",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 166
  },
  "hsl": {
    "h": 223.597,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41711,
    "c": 0.16841,
    "h": 264.4
  },
  "luminance": 0.06767
}

Semantic roles & 50–950 ramp

primary
#1B41A6
secondary
#C7A856
accent
#BD39EF
background
#F7F7FC
surface
#EDEDF8
border
#C8C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1B41A6

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

Preview Lab → · Contrast checker → · Palette generator →

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