#2640AE#2640AE

#2640AE is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.178 H 267.6°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2640AE
RGBrgb(38, 64, 174)
HSLhsl(229, 64%, 42%)
HSVhsv(229, 78%, 68%)
CMYKcmyk(78.2%, 63.2%, 0%, 31.8%)
CIE-LABlab(32.11, 30.78, -61.33)
CIE-LCHlch(32.11, 68.62, 296.65°)
OKLaboklab(42.67% -0.0074 -0.1774)
OKLCHoklch(42.67% 0.178 267.6)
XYZxyz(10.2700, 7.1337, 40.8719)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2640AE #AE9426
analogous
#2684AE #2640AE #5026AE
triadic
#2640AE #AE2640 #40AE26
tetradic
#2640AE #AE2684 #AE9426 #26AE50
square
#2640AE #AE2684 #AE9426 #26AE50
split-complementary
#2640AE #AE5026 #84AE26
monochromatic
#101B4A #1B2E7C #2640AE #3D5AD5 #6F84E0

Accessibility & contrast

On white

8.65
#2640AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2640AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2640AE
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2640AE#FFFFFF#000000##FFFFFF
##2640AE1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2640ae;
/* rgb */ color: rgb(38, 64, 174);
/* oklch */ color: oklch(42.7% 0.178 267.6);
Tailwind
colors: {
  custom: {
    50: '#7774c7',
    500: '#2640ae',
    950: '#000000',
  },
}
SCSS
$custom: #2640ae;
$custom-light: #7774c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2640ae",
  "rgb": {
    "r": 38,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 228.529,
    "s": 64.151,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42665,
    "c": 0.17753,
    "h": 267.6
  },
  "luminance": 0.07135
}

Semantic roles & 50–950 ramp

primary
#2640AE
secondary
#C6B46A
accent
#C741E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2640AE

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

Preview Lab → · Contrast checker → · Palette generator →

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