#1B1173#1B1173

#1B1173 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.155 H 274.6°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#1B1173
RGBrgb(27, 17, 115)
HSLhsl(246, 74%, 26%)
HSVhsv(246, 85%, 45%)
CMYKcmyk(76.5%, 85.2%, 0%, 54.9%)
CIE-LABlab(14.80, 37.41, -53.27)
CIE-LCHlch(14.80, 65.09, 305.08°)
OKLaboklab(28.21% 0.0124 -0.154)
OKLCHoklch(28.21% 0.155 274.6)
XYZxyz(3.7459, 1.8713, 16.3801)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1173 #697311
analogous
#113873 #1B1173 #4C1173
triadic
#1B1173 #731B11 #11731B
tetradic
#1B1173 #731138 #697311 #11734C
square
#1B1173 #731138 #697311 #11734C
split-complementary
#1B1173 #734C11 #387311
monochromatic
#06041B #0E093E #1B1173 #2819A8 #3421DE

Accessibility & contrast

On white

15.28
#1B1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1B1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1173
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1173#FFFFFF#000000##FFFFFF
##1B11731.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A76
Deuteranopia (green-blind)
#002171
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1b1173;
/* rgb */ color: rgb(27, 17, 115);
/* oklch */ color: oklch(28.2% 0.155 274.6);
Tailwind
colors: {
  custom: {
    50: '#68529c',
    500: '#1b1173',
    950: '#000000',
  },
}
SCSS
$custom: #1b1173;
$custom-light: #68529c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1173",
  "rgb": {
    "r": 27,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 246.122,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28211,
    "c": 0.15454,
    "h": 274.6
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#1B1173
secondary
#9EAA36
accent
#F137DE
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1B1173

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

Preview Lab → · Contrast checker → · Palette generator →

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