#1B1176#1B1176

#1B1176 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.6% C 0.158 H 274.2°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#1B1176
RGBrgb(27, 17, 118)
HSLhsl(246, 75%, 26%)
HSVhsv(246, 86%, 46%)
CMYKcmyk(77.1%, 85.6%, 0%, 53.7%)
CIE-LABlab(15.18, 38.39, -54.58)
CIE-LCHlch(15.18, 66.73, 305.12°)
OKLaboklab(28.58% 0.0115 -0.1578)
OKLCHoklch(28.58% 0.158 274.2)
XYZxyz(3.9214, 1.9415, 17.3041)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1176 #6C7611
analogous
#113A76 #1B1176 #4E1176
triadic
#1B1176 #761B11 #11761B
tetradic
#1B1176 #76113A #6C7611 #11764E
square
#1B1176 #76113A #6C7611 #11764E
split-complementary
#1B1176 #764E11 #3A7611
monochromatic
#06041B #0F0941 #1B1176 #2719AB #3522DF

Accessibility & contrast

On white

15.13
#1B1176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1B1176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1176
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1176#FFFFFF#000000##FFFFFF
##1B11761.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A79
Deuteranopia (green-blind)
#002174
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b1176;
/* rgb */ color: rgb(27, 17, 118);
/* oklch */ color: oklch(28.6% 0.158 274.2);
Tailwind
colors: {
  custom: {
    50: '#69539f',
    500: '#1b1176',
    950: '#000000',
  },
}
SCSS
$custom: #1b1176;
$custom-light: #69539f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1176",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 118
  },
  "hsl": {
    "h": 245.941,
    "s": 74.815,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28584,
    "c": 0.15825,
    "h": 274.2
  },
  "luminance": 0.01942
}

Semantic roles & 50–950 ramp

primary
#1B1176
secondary
#A1AD36
accent
#F136DF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020F
muted
#7A787E

Preview Lab

Preview with #1B1176

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

Preview Lab → · Contrast checker → · Palette generator →

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