#1B45C5#1B45C5

#1B45C5 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.4% C 0.204 H 264.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#1B45C5
RGBrgb(27, 69, 197)
HSLhsl(225, 76%, 44%)
HSVhsv(225, 86%, 77%)
CMYKcmyk(86.3%, 65%, 0%, 22.7%)
CIE-LABlab(35.04, 35.31, -70.10)
CIE-LCHlch(35.04, 78.49, 296.73°)
OKLaboklab(45.35% -0.0184 -0.2032)
OKLCHoklch(45.35% 0.204 264.8)
XYZxyz(12.6546, 8.5189, 53.7898)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B45C5 #C59B1B
analogous
#1B9AC5 #1B45C5 #461BC5
triadic
#1B45C5 #C51B45 #45C51B
tetradic
#1B45C5 #C51B9A #C59B1B #1BC546
square
#1B45C5 #C51B9A #C59B1B #1BC546
split-complementary
#1B45C5 #C5461B #9AC51B
monochromatic
#0C1F59 #14328F #1B45C5 #3963E4 #6F8EEB

Accessibility & contrast

On white

7.77
#1B45C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#1B45C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B45C5
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B45C5#FFFFFF#000000##FFFFFF
##1B45C51.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#004BC3
Tritanopia (blue-blind)
#00677F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1b45c5;
/* rgb */ color: rgb(27, 69, 197);
/* oklch */ color: oklch(45.4% 0.204 264.8);
Tailwind
colors: {
  custom: {
    50: '#7978d8',
    500: '#1b45c5',
    950: '#000000',
  },
}
SCSS
$custom: #1b45c5;
$custom-light: #7978d8;
$custom-dark: #000000;
JSON
{
  "hex": "#1b45c5",
  "rgb": {
    "r": 27,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 225.176,
    "s": 75.893,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45353,
    "c": 0.204,
    "h": 264.8
  },
  "luminance": 0.0852
}

Semantic roles & 50–950 ramp

primary
#1B45C5
secondary
#D1B86A
accent
#C435F2
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0915
muted
#7C7B83

Preview Lab

Preview with #1B45C5

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

Preview Lab → · Contrast checker → · Palette generator →

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