#1B1E7C#1B1E7C

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

Color values

HEX#1B1E7C
RGBrgb(27, 30, 124)
HSLhsl(238, 64%, 30%)
HSVhsv(238, 78%, 49%)
CMYKcmyk(78.2%, 75.8%, 0%, 51.4%)
CIE-LABlab(18.44, 33.16, -53.03)
CIE-LCHlch(18.44, 62.54, 302.01°)
OKLaboklab(31.08% 0.0047 -0.1535)
OKLCHoklch(31.08% 0.154 271.8)
XYZxyz(4.5531, 2.6163, 19.3299)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1E7C #7C791B
analogous
#1B4F7C #1B1E7C #481B7C
triadic
#1B1E7C #7C1B1E #1E7C1B
tetradic
#1B1E7C #7C1B4F #7C791B #1B7C48
square
#1B1E7C #7C1B4F #7C791B #1B7C48
split-complementary
#1B1E7C #7C481B #4F7C1B
monochromatic
#050619 #10124A #1B1E7C #262AAE #3D41D5

Accessibility & contrast

On white

13.78
#1B1E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1E7C
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1E7C#FFFFFF#000000##FFFFFF
##1B1E7C1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b1e7c;
/* rgb */ color: rgb(27, 30, 124);
/* oklch */ color: oklch(31.1% 0.154 271.8);
Tailwind
colors: {
  custom: {
    50: '#695ba3',
    500: '#1b1e7c',
    950: '#000000',
  },
}
SCSS
$custom: #1b1e7c;
$custom-light: #695ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1e7c",
  "rgb": {
    "r": 27,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 238.144,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31082,
    "c": 0.15358,
    "h": 271.8
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#1B1E7C
secondary
#B0AD43
accent
#E241E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B1E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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