#1B1180#1B1180

#1B1180 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.170 H 272.9°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#1B1180
RGBrgb(27, 17, 128)
HSLhsl(245, 77%, 28%)
HSVhsv(245, 87%, 50%)
CMYKcmyk(78.9%, 86.7%, 0%, 49.8%)
CIE-LABlab(16.46, 41.58, -58.85)
CIE-LCHlch(16.46, 72.06, 305.25°)
OKLaboklab(29.84% 0.0086 -0.1702)
OKLCHoklch(29.84% 0.17 272.9)
XYZxyz(4.5474, 2.1919, 20.6013)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1180 #768011
analogous
#113E80 #1B1180 #521180
triadic
#1B1180 #801B11 #11801B
tetradic
#1B1180 #80113E #768011 #118052
square
#1B1180 #80113E #768011 #118052
split-complementary
#1B1180 #805211 #3E8011
monochromatic
#06041B #100A4A #1B1180 #2618B6 #3A29E3

Accessibility & contrast

On white

14.60
#1B1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1B1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1180
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1180#FFFFFF#000000##FFFFFF
##1B11801.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E83
Deuteranopia (green-blind)
#00237E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b1180;
/* rgb */ color: rgb(27, 17, 128);
/* oklch */ color: oklch(29.8% 0.170 272.9);
Tailwind
colors: {
  custom: {
    50: '#6c54a6',
    500: '#1b1180',
    950: '#000000',
  },
}
SCSS
$custom: #1b1180;
$custom-light: #6c54a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1180",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 245.405,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.2984,
    "c": 0.17041,
    "h": 272.9
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#1B1180
secondary
#AAB637
accent
#F335E2
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1B1180

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

Preview Lab → · Contrast checker → · Palette generator →

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