#1B45A8#1B45A8

#1B45A8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.7% C 0.166 H 263.5°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#1B45A8
RGBrgb(27, 69, 168)
HSLhsl(222, 72%, 38%)
HSVhsv(222, 84%, 66%)
CMYKcmyk(83.9%, 58.9%, 0%, 34.1%)
CIE-LABlab(32.51, 24.11, -57.09)
CIE-LCHlch(32.51, 61.98, 292.89°)
OKLaboklab(42.7% -0.0188 -0.1651)
OKLCHoklch(42.7% 0.166 263.5)
XYZxyz(9.6455, 7.3152, 37.9418)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B45A8 #A87E1B
analogous
#1B8BA8 #1B45A8 #381BA8
triadic
#1B45A8 #A81B45 #45A81B
tetradic
#1B45A8 #A81B8B #A87E1B #1BA838
square
#1B45A8 #A81B8B #A87E1B #1BA838
split-complementary
#1B45A8 #A8381B #8BA81B
monochromatic
#0A1A3F #132F73 #1B45A8 #245BDC #5983E4

Accessibility & contrast

On white

8.53
#1B45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B45A8
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B45A8#FFFFFF#000000##FFFFFF
##1B45A81.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b45a8;
/* rgb */ color: rgb(27, 69, 168);
/* oklch */ color: oklch(42.7% 0.166 263.5);
Tailwind
colors: {
  custom: {
    50: '#7278c3',
    500: '#1b45a8',
    950: '#000000',
  },
}
SCSS
$custom: #1b45a8;
$custom-light: #7278c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b45a8",
  "rgb": {
    "r": 27,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 222.128,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42696,
    "c": 0.16614,
    "h": 263.5
  },
  "luminance": 0.07316
}

Semantic roles & 50–950 ramp

primary
#1B45A8
secondary
#C8A657
accent
#B939EF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1B45A8

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

Preview Lab → · Contrast checker → · Palette generator →

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