#2662B7#2662B7

#2662B7 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.4% C 0.148 H 257.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#2662B7
RGBrgb(38, 98, 183)
HSLhsl(215, 66%, 43%)
HSVhsv(215, 79%, 72%)
CMYKcmyk(79.2%, 46.4%, 0%, 28.2%)
CIE-LABlab(42.10, 11.80, -50.43)
CIE-LCHlch(42.10, 51.79, 283.17°)
OKLaboklab(50.44% -0.031 -0.1448)
OKLCHoklch(50.44% 0.148 257.9)
XYZxyz(13.7111, 12.5647, 46.4932)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2662B7 #B77B26
analogous
#26AAB7 #2662B7 #3226B7
triadic
#2662B7 #B72662 #62B726
tetradic
#2662B7 #B726AA #B77B26 #26B732
square
#2662B7 #B726AA #B77B26 #26B732
split-complementary
#2662B7 #B73226 #AAB726
monochromatic
#112C52 #1B4784 #2662B7 #4280D8 #75A2E2

Accessibility & contrast

On white

5.98
#2662B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#2662B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2662B7
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2662B7#FFFFFF#000000##FFFFFF
##2662B71.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346ABA
Deuteranopia (green-blind)
#0E5DB5
Tritanopia (blue-blind)
#007683
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2662b7;
/* rgb */ color: rgb(38, 98, 183);
/* oklch */ color: oklch(50.4% 0.148 257.9);
Tailwind
colors: {
  custom: {
    50: '#778ecd',
    500: '#2662b7',
    950: '#000000',
  },
}
SCSS
$custom: #2662b7;
$custom-light: #778ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#2662b7",
  "rgb": {
    "r": 38,
    "g": 98,
    "b": 183
  },
  "hsl": {
    "h": 215.172,
    "s": 65.611,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50437,
    "c": 0.14806,
    "h": 257.9
  },
  "luminance": 0.12566
}

Semantic roles & 50–950 ramp

primary
#2662B7
secondary
#CAA46F
accent
#A23FE9
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2662B7

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

Preview Lab → · Contrast checker → · Palette generator →

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