#1B1E8D#1B1E8D

#1B1E8D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.175 H 270.5°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#1B1E8D
RGBrgb(27, 30, 141)
HSLhsl(238, 68%, 33%)
HSVhsv(238, 81%, 55%)
CMYKcmyk(80.9%, 78.7%, 0%, 44.7%)
CIE-LABlab(20.38, 39.17, -60.54)
CIE-LCHlch(20.38, 72.11, 302.90°)
OKLaboklab(33.03% 0.0016 -0.1753)
OKLCHoklch(33.03% 0.175 270.5)
XYZxyz(5.7224, 3.0840, 25.4878)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1E8D #8D8A1B
analogous
#1B578D #1B1E8D #511B8D
triadic
#1B1E8D #8D1B1E #1E8D1B
tetradic
#1B1E8D #8D1B57 #8D8A1B #1B8D51
square
#1B1E8D #8D1B57 #8D8A1B #1B8D51
split-complementary
#1B1E8D #8D511B #578D1B
monochromatic
#070826 #11135A #1B1E8D #2529C0 #474BDC

Accessibility & contrast

On white

12.99
#1B1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1B1E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1E8D
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1E8D#FFFFFF#000000##FFFFFF
##1B1E8D1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002B8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b1e8d;
/* rgb */ color: rgb(27, 30, 141);
/* oklch */ color: oklch(33.0% 0.175 270.5);
Tailwind
colors: {
  custom: {
    50: '#6e5cb0',
    500: '#1b1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #1b1e8d;
$custom-light: #6e5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1e8d",
  "rgb": {
    "r": 27,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 238.421,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3303,
    "c": 0.17533,
    "h": 270.5
  },
  "luminance": 0.03085
}

Semantic roles & 50–950 ramp

primary
#1B1E8D
secondary
#BDBA46
accent
#E63DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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