#1B1E7D#1B1E7D

#1B1E7D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.155 H 271.7°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#1B1E7D
RGBrgb(27, 30, 125)
HSLhsl(238, 64%, 30%)
HSVhsv(238, 78%, 49%)
CMYKcmyk(78.4%, 76%, 0%, 51%)
CIE-LABlab(18.55, 33.52, -53.49)
CIE-LCHlch(18.55, 63.12, 302.08°)
OKLaboklab(31.2% 0.0046 -0.1548)
OKLCHoklch(31.2% 0.155 271.7)
XYZxyz(4.6167, 2.6417, 19.6647)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1E7D #7D7A1B
analogous
#1B4F7D #1B1E7D #491B7D
triadic
#1B1E7D #7D1B1E #1E7D1B
tetradic
#1B1E7D #7D1B4F #7D7A1B #1B7D49
square
#1B1E7D #7D1B4F #7D7A1B #1B7D49
split-complementary
#1B1E7D #7D491B #4F7D1B
monochromatic
#050619 #10124B #1B1E7D #262AAF #3D42D5

Accessibility & contrast

On white

13.74
#1B1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1B1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1E7D
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1E7D#FFFFFF#000000##FFFFFF
##1B1E7D1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b1e7d;
/* rgb */ color: rgb(27, 30, 125);
/* oklch */ color: oklch(31.2% 0.155 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a5ba4',
    500: '#1b1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #1b1e7d;
$custom-light: #6a5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1e7d",
  "rgb": {
    "r": 27,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 238.163,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31195,
    "c": 0.1549,
    "h": 271.7
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#1B1E7D
secondary
#B1AE43
accent
#E240E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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