#2640A4#2640A4

#2640A4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.164 H 267.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2640A4
RGBrgb(38, 64, 164)
HSLhsl(228, 62%, 40%)
HSVhsv(228, 77%, 64%)
CMYKcmyk(76.8%, 61%, 0%, 35.7%)
CIE-LABlab(31.25, 26.99, -56.74)
CIE-LCHlch(31.25, 62.83, 295.44°)
OKLaboklab(41.76% -0.0073 -0.1639)
OKLCHoklch(41.76% 0.164 267.4)
XYZxyz(9.3312, 6.7582, 35.9274)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2640A4 #A48A26
analogous
#267FA4 #2640A4 #4B26A4
triadic
#2640A4 #A42640 #40A426
tetradic
#2640A4 #A4267F #A48A26 #26A44B
square
#2640A4 #A4267F #A48A26 #26A44B
split-complementary
#2640A4 #A44B26 #7FA426
monochromatic
#0F1941 #1A2D72 #2640A4 #3756D1 #6880DC

Accessibility & contrast

On white

8.93
#2640A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2640A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2640A4
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2640A4#FFFFFF#000000##FFFFFF
##2640A41.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2640a4;
/* rgb */ color: rgb(38, 64, 164);
/* oklch */ color: oklch(41.8% 0.164 267.4);
Tailwind
colors: {
  custom: {
    50: '#7474c0',
    500: '#2640a4',
    950: '#000000',
  },
}
SCSS
$custom: #2640a4;
$custom-light: #7474c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2640a4",
  "rgb": {
    "r": 38,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 227.619,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41762,
    "c": 0.16409,
    "h": 267.4
  },
  "luminance": 0.06759
}

Semantic roles & 50–950 ramp

primary
#2640A4
secondary
#C2AF64
accent
#C442E5
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2640A4

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

Preview Lab → · Contrast checker → · Palette generator →

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