#1B1E8B#1B1E8B

#1B1E8B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.173 H 270.7°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#1B1E8B
RGBrgb(27, 30, 139)
HSLhsl(238, 67%, 33%)
HSVhsv(238, 81%, 55%)
CMYKcmyk(80.6%, 78.4%, 0%, 45.5%)
CIE-LABlab(20.14, 38.48, -59.68)
CIE-LCHlch(20.14, 71.01, 302.81°)
OKLaboklab(32.8% 0.002 -0.1728)
OKLCHoklch(32.8% 0.173 270.7)
XYZxyz(5.5749, 3.0250, 24.7112)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1E8B #8B881B
analogous
#1B568B #1B1E8B #501B8B
triadic
#1B1E8B #8B1B1E #1E8B1B
tetradic
#1B1E8B #8B1B56 #8B881B #1B8B50
square
#1B1E8B #8B1B56 #8B881B #1B8B50
split-complementary
#1B1E8B #8B501B #568B1B
monochromatic
#070825 #111358 #1B1E8B #2529BE #4549DB

Accessibility & contrast

On white

13.08
#1B1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1B1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1E8B
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1E8B#FFFFFF#000000##FFFFFF
##1B1E8B1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b1e8b;
/* rgb */ color: rgb(27, 30, 139);
/* oklch */ color: oklch(32.8% 0.173 270.7);
Tailwind
colors: {
  custom: {
    50: '#6d5cae',
    500: '#1b1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #1b1e8b;
$custom-light: #6d5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1e8b",
  "rgb": {
    "r": 27,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 238.393,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32797,
    "c": 0.17283,
    "h": 270.7
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#1B1E8B
secondary
#BCB945
accent
#E63DEA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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