#1B1978#1B1978

#1B1978 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.154 H 272.9°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#1B1978
RGBrgb(27, 25, 120)
HSLhsl(241, 66%, 28%)
HSVhsv(241, 79%, 47%)
CMYKcmyk(77.5%, 79.2%, 0%, 52.9%)
CIE-LABlab(16.91, 34.75, -52.99)
CIE-LCHlch(16.91, 63.37, 303.25°)
OKLaboklab(29.87% 0.0078 -0.1533)
OKLCHoklch(29.87% 0.154 272.9)
XYZxyz(4.1887, 2.2839, 17.9857)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1978 #767819
analogous
#194678 #1B1978 #4A1978
triadic
#1B1978 #781B19 #19781B
tetradic
#1B1978 #781946 #767819 #19784A
square
#1B1978 #781946 #767819 #19784A
split-complementary
#1B1978 #784A19 #467819
monochromatic
#060519 #100E45 #1B1978 #2624AB #3A36D5

Accessibility & contrast

On white

14.42
#1B1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1B1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1978
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1978#FFFFFF#000000##FFFFFF
##1B19781.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b1978;
/* rgb */ color: rgb(27, 25, 120);
/* oklch */ color: oklch(29.9% 0.154 272.9);
Tailwind
colors: {
  custom: {
    50: '#6957a0',
    500: '#1b1978',
    950: '#000000',
  },
}
SCSS
$custom: #1b1978;
$custom-light: #6957a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1978",
  "rgb": {
    "r": 27,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 241.263,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29866,
    "c": 0.15355,
    "h": 272.9
  },
  "luminance": 0.02284
}

Semantic roles & 50–950 ramp

primary
#1B1978
secondary
#AAAD40
accent
#E83FE5
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1B1978

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

Preview Lab → · Contrast checker → · Palette generator →

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