#1B45A0#1B45A0

#1B45A0 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.0% C 0.155 H 262.9°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#1B45A0
RGBrgb(27, 69, 160)
HSLhsl(221, 71%, 37%)
HSVhsv(221, 83%, 63%)
CMYKcmyk(83.1%, 56.9%, 0%, 37.3%)
CIE-LABlab(31.87, 20.92, -53.34)
CIE-LCHlch(31.87, 57.30, 291.42°)
OKLaboklab(42.01% -0.0193 -0.154)
OKLCHoklch(42.01% 0.155 262.9)
XYZxyz(8.9230, 7.0262, 34.1368)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B45A0 #A0761B
analogous
#1B88A0 #1B45A0 #341BA0
triadic
#1B45A0 #A01B45 #45A01B
tetradic
#1B45A0 #A01B88 #A0761B #1BA034
square
#1B45A0 #A01B88 #A0761B #1BA034
split-complementary
#1B45A0 #A0341B #88A01B
monochromatic
#091837 #122E6C #1B45A0 #245CD4 #5380E2

Accessibility & contrast

On white

8.73
#1B45A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1B45A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B45A0
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B45A0#FFFFFF#000000##FFFFFF
##1B45A01.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1b45a0;
/* rgb */ color: rgb(27, 69, 160);
/* oklch */ color: oklch(42.0% 0.155 262.9);
Tailwind
colors: {
  custom: {
    50: '#6f78bd',
    500: '#1b45a0',
    950: '#000000',
  },
}
SCSS
$custom: #1b45a0;
$custom-light: #6f78bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1b45a0",
  "rgb": {
    "r": 27,
    "g": 69,
    "b": 160
  },
  "hsl": {
    "h": 221.053,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42007,
    "c": 0.15525,
    "h": 262.9
  },
  "luminance": 0.07027
}

Semantic roles & 50–950 ramp

primary
#1B45A0
secondary
#C5A152
accent
#B53AEE
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1B45A0

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

Preview Lab → · Contrast checker → · Palette generator →

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