#1B1E4E#1B1E4E

#1B1E4E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.087 H 276.0°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#1B1E4E
RGBrgb(27, 30, 78)
HSLhsl(236, 49%, 21%)
HSVhsv(236, 65%, 31%)
CMYKcmyk(65.4%, 61.5%, 0%, 69.4%)
CIE-LABlab(13.89, 15.58, -30.14)
CIE-LCHlch(13.89, 33.93, 297.34°)
OKLaboklab(26.39% 0.0091 -0.0865)
OKLCHoklch(26.39% 0.087 276)
XYZxyz(2.2910, 1.7114, 7.4159)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1E4E #4E4B1B
analogous
#1B374E #1B1E4E #311B4E
triadic
#1B1E4E #4E1B1E #1E4E1B
tetradic
#1B1E4E #4E1B37 #4E4B1B #1B4E31
square
#1B1E4E #4E1B37 #4E4B1B #1B4E31
split-complementary
#1B1E4E #4E311B #374E1B
monochromatic
#080917 #0B0D21 #1B1E4E #2B2F7B #3A41A9

Accessibility & contrast

On white

15.64
#1B1E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1B1E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1E4E
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1E4E#FFFFFF#000000##FFFFFF
##1B1E4E1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1b1e4e;
/* rgb */ color: rgb(27, 30, 78);
/* oklch */ color: oklch(26.4% 0.087 276.0);
Tailwind
colors: {
  custom: {
    50: '#5d5980',
    500: '#1b1e4e',
    950: '#000000',
  },
}
SCSS
$custom: #1b1e4e;
$custom-light: #5d5980;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1e4e",
  "rgb": {
    "r": 27,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 236.471,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26387,
    "c": 0.08694,
    "h": 276
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#1B1E4E
secondary
#848041
accent
#D050D8
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#05030A
muted
#79787C

Preview Lab

Preview with #1B1E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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