#1B1479#1B1479

#1B1479 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.159 H 273.5°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#1B1479
RGBrgb(27, 20, 121)
HSLhsl(244, 72%, 28%)
HSVhsv(244, 83%, 47%)
CMYKcmyk(77.7%, 83.5%, 0%, 52.5%)
CIE-LABlab(16.07, 37.86, -55.03)
CIE-LCHlch(16.07, 66.79, 304.53°)
OKLaboklab(29.31% 0.0096 -0.1592)
OKLCHoklch(29.31% 0.159 273.5)
XYZxyz(4.1522, 2.1134, 18.2745)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1479 #727914
analogous
#144079 #1B1479 #4D1479
triadic
#1B1479 #791B14 #14791B
tetradic
#1B1479 #791440 #727914 #14794D
square
#1B1479 #791440 #727914 #14794D
split-complementary
#1B1479 #794D14 #407914
monochromatic
#06041A #0F0B44 #1B1479 #271DAE #382BDC

Accessibility & contrast

On white

14.76
#1B1479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1B1479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1479
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1479#FFFFFF#000000##FFFFFF
##1B14791.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7C
Deuteranopia (green-blind)
#002377
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b1479;
/* rgb */ color: rgb(27, 20, 121);
/* oklch */ color: oklch(29.3% 0.159 273.5);
Tailwind
colors: {
  custom: {
    50: '#6954a1',
    500: '#1b1479',
    950: '#000000',
  },
}
SCSS
$custom: #1b1479;
$custom-light: #6954a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1479",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 244.158,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29313,
    "c": 0.15947,
    "h": 273.5
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#1B1479
secondary
#A7AF3A
accent
#EE39E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B1479

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

Preview Lab → · Contrast checker → · Palette generator →

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