#1B1779#1B1779

#1B1779 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.157 H 273.1°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#1B1779
RGBrgb(27, 23, 121)
HSLhsl(242, 68%, 28%)
HSVhsv(242, 81%, 47%)
CMYKcmyk(77.7%, 81%, 0%, 52.5%)
CIE-LABlab(16.63, 36.24, -54.10)
CIE-LCHlch(16.63, 65.12, 303.82°)
OKLaboklab(29.7% 0.0085 -0.1565)
OKLCHoklch(29.7% 0.157 273.1)
XYZxyz(4.2084, 2.2258, 18.2933)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1779 #757917
analogous
#174479 #1B1779 #4C1779
triadic
#1B1779 #791B17 #17791B
tetradic
#1B1779 #791744 #757917 #17794C
square
#1B1779 #791744 #757917 #17794C
split-complementary
#1B1779 #794C17 #447917
monochromatic
#06051A #100D46 #1B1779 #2621AC #3932D8

Accessibility & contrast

On white

14.53
#1B1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1779
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1779#FFFFFF#000000##FFFFFF
##1B17791.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002477
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b1779;
/* rgb */ color: rgb(27, 23, 121);
/* oklch */ color: oklch(29.7% 0.157 273.1);
Tailwind
colors: {
  custom: {
    50: '#6956a1',
    500: '#1b1779',
    950: '#000000',
  },
}
SCSS
$custom: #1b1779;
$custom-light: #6956a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1779",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 242.449,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29703,
    "c": 0.15677,
    "h": 273.1
  },
  "luminance": 0.02226
}

Semantic roles & 50–950 ramp

primary
#1B1779
secondary
#A9AE3E
accent
#EB3DE4
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1B1779

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

Preview Lab → · Contrast checker → · Palette generator →

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