#1B52A7#1B52A7

#1B52A7 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.4% C 0.149 H 259.3°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#1B52A7
RGBrgb(27, 82, 167)
HSLhsl(216, 72%, 38%)
HSVhsv(216, 84%, 65%)
CMYKcmyk(83.8%, 50.9%, 0%, 34.5%)
CIE-LABlab(36.09, 14.93, -50.69)
CIE-LCHlch(36.09, 52.84, 286.42°)
OKLaboklab(45.39% -0.0275 -0.146)
OKLCHoklch(45.39% 0.149 259.3)
XYZxyz(10.4418, 9.0563, 37.7494)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B52A7 #A7701B
analogous
#1B98A7 #1B52A7 #2A1BA7
triadic
#1B52A7 #A71B52 #52A71B
tetradic
#1B52A7 #A71B98 #A7701B #1BA72A
square
#1B52A7 #A71B98 #A7701B #1BA72A
split-complementary
#1B52A7 #A72A1B #98A71B
monochromatic
#0A1E3E #123872 #1B52A7 #246CDC #588FE4

Accessibility & contrast

On white

7.47
#1B52A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#1B52A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B52A7
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B52A7#FFFFFF#000000##FFFFFF
##1B52A71.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5CAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006774
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1b52a7;
/* rgb */ color: rgb(27, 82, 167);
/* oklch */ color: oklch(45.4% 0.149 259.3);
Tailwind
colors: {
  custom: {
    50: '#7181c2',
    500: '#1b52a7',
    950: '#000000',
  },
}
SCSS
$custom: #1b52a7;
$custom-light: #7181c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b52a7",
  "rgb": {
    "r": 27,
    "g": 82,
    "b": 167
  },
  "hsl": {
    "h": 216.429,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45387,
    "c": 0.14857,
    "h": 259.3
  },
  "luminance": 0.09058
}

Semantic roles & 50–950 ramp

primary
#1B52A7
secondary
#C89B56
accent
#A739EF
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1B52A7

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

Preview Lab → · Contrast checker → · Palette generator →

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