#1B45A7#1B45A7

#1B45A7 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.165 H 263.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#1B45A7
RGBrgb(27, 69, 167)
HSLhsl(222, 72%, 38%)
HSVhsv(222, 84%, 65%)
CMYKcmyk(83.8%, 58.7%, 0%, 34.5%)
CIE-LABlab(32.43, 23.71, -56.63)
CIE-LCHlch(32.43, 61.39, 292.72°)
OKLaboklab(42.61% -0.0188 -0.1637)
OKLCHoklch(42.61% 0.165 263.4)
XYZxyz(9.5527, 7.2781, 37.4531)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B45A7 #A77D1B
analogous
#1B8BA7 #1B45A7 #371BA7
triadic
#1B45A7 #A71B45 #45A71B
tetradic
#1B45A7 #A71B8B #A77D1B #1BA737
square
#1B45A7 #A71B8B #A77D1B #1BA737
split-complementary
#1B45A7 #A7371B #8BA71B
monochromatic
#0A193E #122F72 #1B45A7 #245BDC #5882E4

Accessibility & contrast

On white

8.55
#1B45A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#1B45A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B45A7
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B45A7#FFFFFF#000000##FFFFFF
##1B45A71.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1b45a7;
/* rgb */ color: rgb(27, 69, 167);
/* oklch */ color: oklch(42.6% 0.165 263.4);
Tailwind
colors: {
  custom: {
    50: '#7178c2',
    500: '#1b45a7',
    950: '#000000',
  },
}
SCSS
$custom: #1b45a7;
$custom-light: #7178c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b45a7",
  "rgb": {
    "r": 27,
    "g": 69,
    "b": 167
  },
  "hsl": {
    "h": 222,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42609,
    "c": 0.1648,
    "h": 263.4
  },
  "luminance": 0.07279
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B45A7

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

Preview Lab → · Contrast checker → · Palette generator →

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