#1B1981#1B1981

#1B1981 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.165 H 272.0°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#1B1981
RGBrgb(27, 25, 129)
HSLhsl(241, 68%, 30%)
HSVhsv(241, 81%, 51%)
CMYKcmyk(79.1%, 80.6%, 0%, 49.4%)
CIE-LABlab(17.98, 37.86, -56.97)
CIE-LCHlch(17.98, 68.41, 303.61°)
OKLaboklab(30.93% 0.0059 -0.1649)
OKLCHoklch(30.93% 0.165 272)
XYZxyz(4.7607, 2.5127, 20.9987)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1981 #7F8119
analogous
#194B81 #1B1981 #4F1981
triadic
#1B1981 #811B19 #19811B
tetradic
#1B1981 #81194B #7F8119 #19814F
square
#1B1981 #81194B #7F8119 #19814F
split-complementary
#1B1981 #814F19 #4B8119
monochromatic
#06051A #100F4E #1B1981 #2623B4 #3E3BD9

Accessibility & contrast

On white

13.98
#1B1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1B1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1981
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1981#FFFFFF#000000##FFFFFF
##1B19811.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b1981;
/* rgb */ color: rgb(27, 25, 129);
/* oklch */ color: oklch(30.9% 0.165 272.0);
Tailwind
colors: {
  custom: {
    50: '#6b58a7',
    500: '#1b1981',
    950: '#000000',
  },
}
SCSS
$custom: #1b1981;
$custom-light: #6b58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1981",
  "rgb": {
    "r": 27,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 241.154,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.30927,
    "c": 0.165,
    "h": 272
  },
  "luminance": 0.02513
}

Semantic roles & 50–950 ramp

primary
#1B1981
secondary
#B3B541
accent
#EA3DE7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1B1981

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

Preview Lab → · Contrast checker → · Palette generator →

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