#1B1A7C#1B1A7C

#1B1A7C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.158 H 272.4°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#1B1A7C
RGBrgb(27, 26, 124)
HSLhsl(241, 65%, 29%)
HSVhsv(241, 79%, 49%)
CMYKcmyk(78.2%, 79%, 0%, 51.4%)
CIE-LABlab(17.58, 35.57, -54.44)
CIE-LCHlch(17.58, 65.03, 303.16°)
OKLaboklab(30.48% 0.0066 -0.1576)
OKLCHoklch(30.48% 0.158 272.4)
XYZxyz(4.4583, 2.4266, 19.2983)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1A7C #7B7C1A
analogous
#1A4A7C #1B1A7C #4C1A7C
triadic
#1B1A7C #7C1B1A #1A7C1B
tetradic
#1B1A7C #7C1A4A #7B7C1A #1A7C4C
square
#1B1A7C #7C1A4A #7B7C1A #1A7C4C
split-complementary
#1B1A7C #7C4C1A #4A7C1A
monochromatic
#060519 #100F49 #1B1A7C #2625AF #3C3BD6

Accessibility & contrast

On white

14.14
#1B1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1B1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1A7C
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1A7C#FFFFFF#000000##FFFFFF
##1B1A7C1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b1a7c;
/* rgb */ color: rgb(27, 26, 124);
/* oklch */ color: oklch(30.5% 0.158 272.4);
Tailwind
colors: {
  custom: {
    50: '#6a58a3',
    500: '#1b1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #1b1a7c;
$custom-light: #6a58a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1a7c",
  "rgb": {
    "r": 27,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 240.612,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30477,
    "c": 0.15771,
    "h": 272.4
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#1B1A7C
secondary
#AFB042
accent
#E840E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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