#2662BC#2662BC

#2662BC is a mid, vivid blue. Relative luminance 0.128; OKLCH L 50.8% C 0.155 H 258.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#2662BC
RGBrgb(38, 98, 188)
HSLhsl(216, 66%, 44%)
HSVhsv(216, 80%, 74%)
CMYKcmyk(79.8%, 47.9%, 0%, 26.3%)
CIE-LABlab(42.42, 13.73, -52.83)
CIE-LCHlch(42.42, 54.58, 284.57°)
OKLaboklab(50.79% -0.0302 -0.1518)
OKLCHoklch(50.79% 0.155 258.7)
XYZxyz(14.2408, 12.7766, 49.2828)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2662BC #BC8026
analogous
#26ADBC #2662BC #3526BC
triadic
#2662BC #BC2662 #62BC26
tetradic
#2662BC #BC26AD #BC8026 #26BC35
square
#2662BC #BC26AD #BC8026 #26BC35
split-complementary
#2662BC #BC3526 #ADBC26
monochromatic
#112D56 #1C4789 #2662BC #4681DA #79A3E4

Accessibility & contrast

On white

5.91
#2662BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2662BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2662BC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2662BC#FFFFFF#000000##FFFFFF
##2662BC1.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)
#2F6BBF
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#007886
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2662bc;
/* rgb */ color: rgb(38, 98, 188);
/* oklch */ color: oklch(50.8% 0.155 258.7);
Tailwind
colors: {
  custom: {
    50: '#788ed1',
    500: '#2662bc',
    950: '#000000',
  },
}
SCSS
$custom: #2662bc;
$custom-light: #788ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#2662bc",
  "rgb": {
    "r": 38,
    "g": 98,
    "b": 188
  },
  "hsl": {
    "h": 216,
    "s": 66.372,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50791,
    "c": 0.1548,
    "h": 258.7
  },
  "luminance": 0.12778
}

Semantic roles & 50–950 ramp

primary
#2662BC
secondary
#CCA872
accent
#A53FE9
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2662BC

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

Preview Lab → · Contrast checker → · Palette generator →

#2662BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva