#1B4EC2#1B4EC2

#1B4EC2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.190 H 263.1°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#1B4EC2
RGBrgb(27, 78, 194)
HSLhsl(222, 76%, 43%)
HSVhsv(222, 86%, 76%)
CMYKcmyk(86.1%, 59.8%, 0%, 23.9%)
CIE-LABlab(37.07, 28.28, -65.03)
CIE-LCHlch(37.07, 70.91, 293.50°)
OKLaboklab(46.78% -0.0227 -0.1882)
OKLCHoklch(46.78% 0.19 263.1)
XYZxyz(12.9105, 9.5752, 52.1962)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4EC2 #C28F1B
analogous
#1BA1C2 #1B4EC2 #3C1BC2
triadic
#1B4EC2 #C21B4E #4EC21B
tetradic
#1B4EC2 #C21BA1 #C28F1B #1BC23C
square
#1B4EC2 #C21BA1 #C28F1B #1BC23C
split-complementary
#1B4EC2 #C23C1B #A1C21B
monochromatic
#0C2357 #14388C #1B4EC2 #376CE3 #6D93EB

Accessibility & contrast

On white

7.20
#1B4EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#1B4EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4EC2
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4EC2#FFFFFF#000000##FFFFFF
##1B4EC21.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #1b4ec2;
/* rgb */ color: rgb(27, 78, 194);
/* oklch */ color: oklch(46.8% 0.190 263.1);
Tailwind
colors: {
  custom: {
    50: '#787fd5',
    500: '#1b4ec2',
    950: '#000000',
  },
}
SCSS
$custom: #1b4ec2;
$custom-light: #787fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4ec2",
  "rgb": {
    "r": 27,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 221.677,
    "s": 75.566,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46779,
    "c": 0.18957,
    "h": 263.1
  },
  "luminance": 0.09577
}

Semantic roles & 50–950 ramp

primary
#1B4EC2
secondary
#D1B168
accent
#B936F2
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #1B4EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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