#1C51AB#1C51AB

#1C51AB is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.155 H 260.4°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#1C51AB
RGBrgb(28, 81, 171)
HSLhsl(218, 72%, 39%)
HSVhsv(218, 84%, 67%)
CMYKcmyk(83.6%, 52.6%, 0%, 32.9%)
CIE-LABlab(36.12, 17.29, -53.02)
CIE-LCHlch(36.12, 55.77, 288.06°)
OKLaboklab(45.51% -0.0258 -0.1529)
OKLCHoklch(45.51% 0.155 260.4)
XYZxyz(10.7693, 9.0707, 39.7034)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C51AB #AB761C
analogous
#1C99AB #1C51AB #2F1CAB
triadic
#1C51AB #AB1C51 #51AB1C
tetradic
#1C51AB #AB1C99 #AB761C #1CAB2F
square
#1C51AB #AB1C99 #AB761C #1CAB2F
split-complementary
#1C51AB #AB2F1C #99AB1C
monochromatic
#0B1F42 #133876 #1C51AB #286BDC #5D8FE4

Accessibility & contrast

On white

7.46
#1C51AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C51AB
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C51AB#FFFFFF#000000##FFFFFF
##1C51AB1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5CAE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1c51ab;
/* rgb */ color: rgb(28, 81, 171);
/* oklch */ color: oklch(45.5% 0.155 260.4);
Tailwind
colors: {
  custom: {
    50: '#7281c5',
    500: '#1c51ab',
    950: '#000000',
  },
}
SCSS
$custom: #1c51ab;
$custom-light: #7281c5;
$custom-dark: #000000;
JSON
{
  "hex": "#1c51ab",
  "rgb": {
    "r": 28,
    "g": 81,
    "b": 171
  },
  "hsl": {
    "h": 217.762,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45507,
    "c": 0.15503,
    "h": 260.4
  },
  "luminance": 0.09072
}

Semantic roles & 50–950 ramp

primary
#1C51AB
secondary
#C9A05A
accent
#AB39EF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #1C51AB

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

Preview Lab → · Contrast checker → · Palette generator →

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