#1B1971#1B1971

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

Color values

HEX#1B1971
RGBrgb(27, 25, 113)
HSLhsl(241, 64%, 27%)
HSVhsv(241, 78%, 44%)
CMYKcmyk(76.1%, 77.9%, 0%, 55.7%)
CIE-LABlab(16.11, 32.27, -49.81)
CIE-LCHlch(16.11, 59.35, 302.94°)
OKLaboklab(29.06% 0.0093 -0.1441)
OKLCHoklch(29.06% 0.144 273.7)
XYZxyz(3.7793, 2.1201, 15.8296)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1971 #6F7119
analogous
#194371 #1B1971 #471971
triadic
#1B1971 #711B19 #19711B
tetradic
#1B1971 #711943 #6F7119 #197147
square
#1B1971 #711943 #6F7119 #197147
split-complementary
#1B1971 #714719 #437119
monochromatic
#060619 #0F0E3F #1B1971 #2724A3 #3633D2

Accessibility & contrast

On white

14.75
#1B1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1971
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1971#FFFFFF#000000##FFFFFF
##1B19711.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b1971;
/* rgb */ color: rgb(27, 25, 113);
/* oklch */ color: oklch(29.1% 0.144 273.7);
Tailwind
colors: {
  custom: {
    50: '#67579b',
    500: '#1b1971',
    950: '#000000',
  },
}
SCSS
$custom: #1b1971;
$custom-light: #67579b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1971",
  "rgb": {
    "r": 27,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 241.364,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29057,
    "c": 0.14439,
    "h": 273.7
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#1B1971
secondary
#A4A640
accent
#E741E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B1971

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

Preview Lab → · Contrast checker → · Palette generator →

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