#1B1880#1B1880

#1B1880 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.165 H 272.2°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#1B1880
RGBrgb(27, 24, 128)
HSLhsl(242, 68%, 30%)
HSVhsv(242, 81%, 50%)
CMYKcmyk(78.9%, 81.3%, 0%, 49.8%)
CIE-LABlab(17.66, 38.07, -56.85)
CIE-LCHlch(17.66, 68.42, 303.81°)
OKLaboklab(30.67% 0.0065 -0.1645)
OKLCHoklch(30.67% 0.165 272.2)
XYZxyz(4.6736, 2.4443, 20.6434)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1880 #7D8018
analogous
#184980 #1B1880 #4F1880
triadic
#1B1880 #801B18 #18801B
tetradic
#1B1880 #801849 #7D8018 #18804F
square
#1B1880 #801849 #7D8018 #18804F
split-complementary
#1B1880 #804F18 #498018
monochromatic
#05051A #100E4C #1B1880 #2622B4 #3D39DA

Accessibility & contrast

On white

14.10
#1B1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1B1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1880
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1880#FFFFFF#000000##FFFFFF
##1B18801.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00267E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b1880;
/* rgb */ color: rgb(27, 24, 128);
/* oklch */ color: oklch(30.7% 0.165 272.2);
Tailwind
colors: {
  custom: {
    50: '#6b57a6',
    500: '#1b1880',
    950: '#000000',
  },
}
SCSS
$custom: #1b1880;
$custom-light: #6b57a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1880",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 241.731,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30674,
    "c": 0.16468,
    "h": 272.2
  },
  "luminance": 0.02445
}

Semantic roles & 50–950 ramp

primary
#1B1880
secondary
#B1B440
accent
#EB3DE6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B1880

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

Preview Lab → · Contrast checker → · Palette generator →

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