#1851B4#1851B4

#1851B4 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.1% C 0.168 H 260.8°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#1851B4
RGBrgb(24, 81, 180)
HSLhsl(218, 76%, 40%)
HSVhsv(218, 87%, 71%)
CMYKcmyk(86.7%, 55%, 0%, 29.4%)
CIE-LABlab(36.69, 20.57, -57.43)
CIE-LCHlch(36.69, 61.00, 289.70°)
OKLaboklab(46.13% -0.0269 -0.1659)
OKLCHoklch(46.13% 0.168 260.8)
XYZxyz(11.5543, 9.3729, 44.3713)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1851B4 #B47B18
analogous
#189FB4 #1851B4 #2D18B4
triadic
#1851B4 #B41851 #51B418
tetradic
#1851B4 #B4189F #B47B18 #18B42D
square
#1851B4 #B4189F #B47B18 #18B42D
split-complementary
#1851B4 #B42D18 #9FB418
monochromatic
#0A2048 #11397E #1851B4 #276BE2 #5D90E9

Accessibility & contrast

On white

7.30
#1851B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#1851B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1851B4
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1851B4#FFFFFF#000000##FFFFFF
##1851B41.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1851b4;
/* rgb */ color: rgb(24, 81, 180);
/* oklch */ color: oklch(46.1% 0.168 260.8);
Tailwind
colors: {
  custom: {
    50: '#7381cb',
    500: '#1851b4',
    950: '#000000',
  },
}
SCSS
$custom: #1851b4;
$custom-light: #7381cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1851b4",
  "rgb": {
    "r": 24,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 218.077,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.46126,
    "c": 0.16803,
    "h": 260.8
  },
  "luminance": 0.09374
}

Semantic roles & 50–950 ramp

primary
#1851B4
secondary
#CDA35B
accent
#AE35F3
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #1851B4

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

Preview Lab → · Contrast checker → · Palette generator →

#1851B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva