#2642C7#2642C7

#2642C7 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.4% C 0.207 H 267.4°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#2642C7
RGBrgb(38, 66, 199)
HSLhsl(230, 68%, 46%)
HSVhsv(230, 81%, 78%)
CMYKcmyk(80.9%, 66.8%, 0%, 22%)
CIE-LABlab(34.86, 38.72, -71.55)
CIE-LCHlch(34.86, 81.35, 298.42°)
OKLaboklab(45.38% -0.0095 -0.2072)
OKLCHoklch(45.38% 0.207 267.4)
XYZxyz(13.0528, 8.4305, 54.9611)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2642C7 #C7AB26
analogous
#2693C7 #2642C7 #5B26C7
triadic
#2642C7 #C72642 #42C726
tetradic
#2642C7 #C72693 #C7AB26 #26C75B
square
#2642C7 #C72693 #C7AB26 #26C75B
split-complementary
#2642C7 #C75B26 #93C726
monochromatic
#122060 #1C3194 #2642C7 #4D66DD #8192E7

Accessibility & contrast

On white

7.82
#2642C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2642C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2642C7
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2642C7#FFFFFF#000000##FFFFFF
##2642C71.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#004AC5
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2642c7;
/* rgb */ color: rgb(38, 66, 199);
/* oklch */ color: oklch(45.4% 0.207 267.4);
Tailwind
colors: {
  custom: {
    50: '#7d76d9',
    500: '#2642c7',
    950: '#000000',
  },
}
SCSS
$custom: #2642c7;
$custom-light: #7d76d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2642c7",
  "rgb": {
    "r": 38,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 229.565,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45381,
    "c": 0.20747,
    "h": 267.4
  },
  "luminance": 0.08432
}

Semantic roles & 50–950 ramp

primary
#2642C7
secondary
#CFC079
accent
#CD3DEB
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2642C7

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

Preview Lab → · Contrast checker → · Palette generator →

#2642C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva