#2B5FC6#2B5FC6

#2B5FC6 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.0% C 0.171 H 262.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#2B5FC6
RGBrgb(43, 95, 198)
HSLhsl(220, 64%, 47%)
HSVhsv(220, 78%, 78%)
CMYKcmyk(78.3%, 52%, 0%, 22.4%)
CIE-LABlab(42.42, 20.05, -58.63)
CIE-LCHlch(42.42, 61.96, 288.88°)
OKLaboklab(51.05% -0.0234 -0.1689)
OKLCHoklch(51.05% 0.171 262.1)
XYZxyz(15.2778, 12.7734, 55.0755)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B5FC6 #C6922B
analogous
#2BACC6 #2B5FC6 #452BC6
triadic
#2B5FC6 #C62B5F #5FC62B
tetradic
#2B5FC6 #C62BAC #C6922B #2BC645
square
#2B5FC6 #C62BAC #C6922B #2BC645
split-complementary
#2B5FC6 #C6452B #ACC62B
monochromatic
#152F61 #204794 #2B5FC6 #5481DA #87A6E5

Accessibility & contrast

On white

5.91
#2B5FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2B5FC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B5FC6
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B5FC6#FFFFFF#000000##FFFFFF
##2B5FC61.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176CCA
Deuteranopia (green-blind)
#005DC4
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2b5fc6;
/* rgb */ color: rgb(43, 95, 198);
/* oklch */ color: oklch(51.0% 0.171 262.1);
Tailwind
colors: {
  custom: {
    50: '#7c8bd8',
    500: '#2b5fc6',
    950: '#000000',
  },
}
SCSS
$custom: #2b5fc6;
$custom-light: #7c8bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b5fc6",
  "rgb": {
    "r": 43,
    "g": 95,
    "b": 198
  },
  "hsl": {
    "h": 219.871,
    "s": 64.315,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51048,
    "c": 0.17051,
    "h": 262.1
  },
  "luminance": 0.12775
}

Semantic roles & 50–950 ramp

primary
#2B5FC6
secondary
#CEB47F
accent
#AF40E7
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #2B5FC6

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

Preview Lab → · Contrast checker → · Palette generator →

#2B5FC6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva