#1B45A6#1B45A6

#1B45A6 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.5% C 0.163 H 263.4°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#1B45A6
RGBrgb(27, 69, 166)
HSLhsl(222, 72%, 38%)
HSVhsv(222, 84%, 65%)
CMYKcmyk(83.7%, 58.4%, 0%, 34.9%)
CIE-LABlab(32.35, 23.31, -56.16)
CIE-LCHlch(32.35, 60.81, 292.54°)
OKLaboklab(42.52% -0.0189 -0.1623)
OKLCHoklch(42.52% 0.163 263.4)
XYZxyz(9.4606, 7.2413, 36.9681)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B45A6 #A67C1B
analogous
#1B8AA6 #1B45A6 #371BA6
triadic
#1B45A6 #A61B45 #45A61B
tetradic
#1B45A6 #A61B8A #A67C1B #1BA637
square
#1B45A6 #A61B8A #A67C1B #1BA637
split-complementary
#1B45A6 #A6371B #8AA61B
monochromatic
#0A193D #122F71 #1B45A6 #245BDB #5882E4

Accessibility & contrast

On white

8.58
#1B45A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1B45A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B45A6
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B45A6#FFFFFF#000000##FFFFFF
##1B45A61.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#005E6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1b45a6;
/* rgb */ color: rgb(27, 69, 166);
/* oklch */ color: oklch(42.5% 0.163 263.4);
Tailwind
colors: {
  custom: {
    50: '#7178c1',
    500: '#1b45a6',
    950: '#000000',
  },
}
SCSS
$custom: #1b45a6;
$custom-light: #7178c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b45a6",
  "rgb": {
    "r": 27,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 221.871,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42522,
    "c": 0.16344,
    "h": 263.4
  },
  "luminance": 0.07242
}

Semantic roles & 50–950 ramp

primary
#1B45A6
secondary
#C7A556
accent
#B839EF
background
#F7F7FC
surface
#EDEDF8
border
#C8C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1B45A6

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

Preview Lab → · Contrast checker → · Palette generator →

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