#1B1B72#1B1B72

#1B1B72 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.144 H 273.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#1B1B72
RGBrgb(27, 27, 114)
HSLhsl(240, 62%, 28%)
HSVhsv(240, 76%, 45%)
CMYKcmyk(76.3%, 76.3%, 0%, 55.3%)
CIE-LABlab(16.66, 31.40, -49.55)
CIE-LCHlch(16.66, 58.66, 302.36°)
OKLaboklab(29.48% 0.0081 -0.1433)
OKLCHoklch(29.48% 0.144 273.2)
XYZxyz(3.8802, 2.2314, 16.1425)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1B72 #72721B
analogous
#1B4672 #1B1B72 #461B72
triadic
#1B1B72 #721B1B #1B721B
tetradic
#1B1B72 #721B46 #72721B #1B7246
square
#1B1B72 #721B46 #72721B #1B7246
split-complementary
#1B1B72 #72461B #46721B
monochromatic
#060619 #0F0F41 #1B1B72 #2727A3 #3838D0

Accessibility & contrast

On white

14.52
#1B1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1B1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1B72
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1B72#FFFFFF#000000##FFFFFF
##1B1B721.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b1b72;
/* rgb */ color: rgb(27, 27, 114);
/* oklch */ color: oklch(29.5% 0.144 273.2);
Tailwind
colors: {
  custom: {
    50: '#67589c',
    500: '#1b1b72',
    950: '#000000',
  },
}
SCSS
$custom: #1b1b72;
$custom-light: #67589c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1b72",
  "rgb": {
    "r": 27,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 240,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29483,
    "c": 0.14357,
    "h": 273.2
  },
  "luminance": 0.02232
}

Semantic roles & 50–950 ramp

primary
#1B1B72
secondary
#A7A742
accent
#E543E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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