#2851AF#2851AF

#2851AF is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.157 H 263.6°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#2851AF
RGBrgb(40, 81, 175)
HSLhsl(222, 63%, 42%)
HSVhsv(222, 77%, 69%)
CMYKcmyk(77.1%, 53.7%, 0%, 31.4%)
CIE-LABlab(36.80, 20.09, -54.28)
CIE-LCHlch(36.80, 57.88, 290.31°)
OKLaboklab(46.23% -0.0174 -0.1564)
OKLCHoklch(46.23% 0.157 263.6)
XYZxyz(11.5526, 9.4298, 41.7604)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851AF #AF8628
analogous
#2895AF #2851AF #4328AF
triadic
#2851AF #AF2851 #51AF28
tetradic
#2851AF #AF2895 #AF8628 #28AF43
square
#2851AF #AF2895 #AF8628 #28AF43
split-complementary
#2851AF #AF4328 #95AF28
monochromatic
#11234B #1D3A7D #2851AF #416DD4 #7393DF

Accessibility & contrast

On white

7.28
#2851AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2851AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2851AF
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851AF#FFFFFF#000000##FFFFFF
##2851AF1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075DB2
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2851af;
/* rgb */ color: rgb(40, 81, 175);
/* oklch */ color: oklch(46.2% 0.157 263.6);
Tailwind
colors: {
  custom: {
    50: '#7681c8',
    500: '#2851af',
    950: '#000000',
  },
}
SCSS
$custom: #2851af;
$custom-light: #7681c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2851af",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 221.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46225,
    "c": 0.15736,
    "h": 263.6
  },
  "luminance": 0.09431
}

Semantic roles & 50–950 ramp

primary
#2851AF
secondary
#C6AB6D
accent
#B442E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2851AF

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

Preview Lab → · Contrast checker → · Palette generator →

#2851AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva