#1B45A1#1B45A1

#1B45A1 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.157 H 263.0°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#1B45A1
RGBrgb(27, 69, 161)
HSLhsl(221, 71%, 37%)
HSVhsv(221, 83%, 63%)
CMYKcmyk(83.2%, 57.1%, 0%, 36.9%)
CIE-LABlab(31.95, 21.32, -53.81)
CIE-LCHlch(31.95, 57.88, 291.62°)
OKLaboklab(42.09% -0.0192 -0.1554)
OKLCHoklch(42.09% 0.157 263)
XYZxyz(9.0108, 7.0614, 34.5994)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B45A1 #A1771B
analogous
#1B88A1 #1B45A1 #341BA1
triadic
#1B45A1 #A11B45 #45A11B
tetradic
#1B45A1 #A11B88 #A1771B #1BA134
square
#1B45A1 #A11B88 #A1771B #1BA134
split-complementary
#1B45A1 #A1341B #88A11B
monochromatic
#091838 #122F6D #1B45A1 #245BD5 #5481E2

Accessibility & contrast

On white

8.71
#1B45A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B45A1
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B45A1#FFFFFF#000000##FFFFFF
##1B45A11.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1b45a1;
/* rgb */ color: rgb(27, 69, 161);
/* oklch */ color: oklch(42.1% 0.157 263.0);
Tailwind
colors: {
  custom: {
    50: '#7078be',
    500: '#1b45a1',
    950: '#000000',
  },
}
SCSS
$custom: #1b45a1;
$custom-light: #7078be;
$custom-dark: #000000;
JSON
{
  "hex": "#1b45a1",
  "rgb": {
    "r": 27,
    "g": 69,
    "b": 161
  },
  "hsl": {
    "h": 221.194,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42092,
    "c": 0.15663,
    "h": 263
  },
  "luminance": 0.07062
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B45A1

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

Preview Lab → · Contrast checker → · Palette generator →

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