#2640C7#2640C7

#2640C7 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.0% C 0.210 H 267.7°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#2640C7
RGBrgb(38, 64, 199)
HSLhsl(230, 68%, 46%)
HSVhsv(230, 81%, 78%)
CMYKcmyk(80.9%, 67.8%, 0%, 22%)
CIE-LABlab(34.40, 39.97, -72.31)
CIE-LCHlch(34.40, 82.63, 298.93°)
OKLaboklab(45.04% -0.0086 -0.2095)
OKLCHoklch(45.04% 0.21 267.7)
XYZxyz(12.9379, 8.2009, 54.9228)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2640C7 #C7AD26
analogous
#2690C7 #2640C7 #5D26C7
triadic
#2640C7 #C72640 #40C726
tetradic
#2640C7 #C72690 #C7AD26 #26C75D
square
#2640C7 #C72690 #C7AD26 #26C75D
split-complementary
#2640C7 #C75D26 #90C726
monochromatic
#121F60 #1C2F94 #2640C7 #4D64DD #8191E7

Accessibility & contrast

On white

7.95
#2640C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2640C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2640C7
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2640C7#FFFFFF#000000##FFFFFF
##2640C71.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CB
Deuteranopia (green-blind)
#0049C5
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2640c7;
/* rgb */ color: rgb(38, 64, 199);
/* oklch */ color: oklch(45.0% 0.210 267.7);
Tailwind
colors: {
  custom: {
    50: '#7d75d9',
    500: '#2640c7',
    950: '#000000',
  },
}
SCSS
$custom: #2640c7;
$custom-light: #7d75d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2640c7",
  "rgb": {
    "r": 38,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 230.311,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45041,
    "c": 0.20967,
    "h": 267.7
  },
  "luminance": 0.08202
}

Semantic roles & 50–950 ramp

primary
#2640C7
secondary
#CFC279
accent
#CF3DEB
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2640C7

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

Preview Lab → · Contrast checker → · Palette generator →

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