#1B1576#1B1576

#1B1576 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.155 H 273.7°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#1B1576
RGBrgb(27, 21, 118)
HSLhsl(244, 70%, 27%)
HSVhsv(244, 82%, 46%)
CMYKcmyk(77.1%, 82.2%, 0%, 53.7%)
CIE-LABlab(15.89, 36.32, -53.40)
CIE-LCHlch(15.89, 64.59, 304.22°)
OKLaboklab(29.08% 0.01 -0.1545)
OKLCHoklch(29.08% 0.155 273.7)
XYZxyz(3.9891, 2.0769, 17.3267)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1576 #707615
analogous
#154076 #1B1576 #4B1576
triadic
#1B1576 #761B15 #15761B
tetradic
#1B1576 #761540 #707615 #15764B
square
#1B1576 #761540 #707615 #15764B
split-complementary
#1B1576 #764B15 #407615
monochromatic
#06051A #0F0C42 #1B1576 #271EAA #372CD9

Accessibility & contrast

On white

14.84
#1B1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1576
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1576#FFFFFF#000000##FFFFFF
##1B15761.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002374
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b1576;
/* rgb */ color: rgb(27, 21, 118);
/* oklch */ color: oklch(29.1% 0.155 273.7);
Tailwind
colors: {
  custom: {
    50: '#69559f',
    500: '#1b1576',
    950: '#000000',
  },
}
SCSS
$custom: #1b1576;
$custom-light: #69559f;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1576",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 243.711,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29076,
    "c": 0.15481,
    "h": 273.7
  },
  "luminance": 0.02077
}

Semantic roles & 50–950 ramp

primary
#1B1576
secondary
#A5AC3B
accent
#ED3BE2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #1B1576

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

Preview Lab → · Contrast checker → · Palette generator →

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