#1B1976#1B1976

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

Color values

HEX#1B1976
RGBrgb(27, 25, 118)
HSLhsl(241, 65%, 28%)
HSVhsv(241, 79%, 46%)
CMYKcmyk(77.1%, 78.8%, 0%, 53.7%)
CIE-LABlab(16.68, 34.05, -52.09)
CIE-LCHlch(16.68, 62.23, 303.17°)
OKLaboklab(29.63% 0.0083 -0.1507)
OKLCHoklch(29.63% 0.151 273.1)
XYZxyz(4.0685, 2.2359, 17.3532)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1976 #747619
analogous
#194576 #1B1976 #491976
triadic
#1B1976 #761B19 #19761B
tetradic
#1B1976 #761945 #747619 #197649
square
#1B1976 #761945 #747619 #197649
split-complementary
#1B1976 #764919 #457619
monochromatic
#060519 #0F0E43 #1B1976 #2724A8 #3935D4

Accessibility & contrast

On white

14.51
#1B1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1976
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1976#FFFFFF#000000##FFFFFF
##1B19761.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b1976;
/* rgb */ color: rgb(27, 25, 118);
/* oklch */ color: oklch(29.6% 0.151 273.1);
Tailwind
colors: {
  custom: {
    50: '#68579f',
    500: '#1b1976',
    950: '#000000',
  },
}
SCSS
$custom: #1b1976;
$custom-light: #68579f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1976",
  "rgb": {
    "r": 27,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 241.29,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29633,
    "c": 0.15096,
    "h": 273.1
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#1B1976
secondary
#A9AB40
accent
#E840E4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #1B1976

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

Preview Lab → · Contrast checker → · Palette generator →

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