#1B1D7D#1B1D7D

#1B1D7D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.156 H 271.8°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#1B1D7D
RGBrgb(27, 29, 125)
HSLhsl(239, 64%, 30%)
HSVhsv(239, 78%, 49%)
CMYKcmyk(78.4%, 76.8%, 0%, 51%)
CIE-LABlab(18.33, 34.13, -53.85)
CIE-LCHlch(18.33, 63.75, 302.37°)
OKLaboklab(31.04% 0.005 -0.1559)
OKLCHoklch(31.04% 0.156 271.8)
XYZxyz(4.5918, 2.5919, 19.6564)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1D7D #7D7B1B
analogous
#1B4E7D #1B1D7D #4A1B7D
triadic
#1B1D7D #7D1B1D #1D7D1B
tetradic
#1B1D7D #7D1B4E #7D7B1B #1B7D4A
square
#1B1D7D #7D1B4E #7D7B1B #1B7D4A
split-complementary
#1B1D7D #7D4A1B #4E7D1B
monochromatic
#050619 #10114B #1B1D7D #2629AF #3D40D5

Accessibility & contrast

On white

13.83
#1B1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1B1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1D7D
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1D7D#FFFFFF#000000##FFFFFF
##1B1D7D1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b1d7d;
/* rgb */ color: rgb(27, 29, 125);
/* oklch */ color: oklch(31.0% 0.156 271.8);
Tailwind
colors: {
  custom: {
    50: '#6a5aa4',
    500: '#1b1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #1b1d7d;
$custom-light: #6a5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1d7d",
  "rgb": {
    "r": 27,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 238.776,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31039,
    "c": 0.15595,
    "h": 271.8
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#1B1D7D
secondary
#B1AF43
accent
#E440E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1B1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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