#2640AB#2640AB

#2640AB is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.174 H 267.6°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2640AB
RGBrgb(38, 64, 171)
HSLhsl(228, 64%, 41%)
HSVhsv(228, 78%, 67%)
CMYKcmyk(77.8%, 62.6%, 0%, 32.9%)
CIE-LABlab(31.85, 29.65, -59.96)
CIE-LCHlch(31.85, 66.89, 296.31°)
OKLaboklab(42.39% -0.0073 -0.1734)
OKLCHoklch(42.39% 0.174 267.6)
XYZxyz(9.9809, 7.0180, 39.3488)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2640AB #AB9126
analogous
#2682AB #2640AB #4F26AB
triadic
#2640AB #AB2640 #40AB26
tetradic
#2640AB #AB2682 #AB9126 #26AB4F
square
#2640AB #AB2682 #AB9126 #26AB4F
split-complementary
#2640AB #AB4F26 #82AB26
monochromatic
#101B47 #1B2D79 #2640AB #3B59D3 #6D83DF

Accessibility & contrast

On white

8.74
#2640AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2640AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2640AB
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2640AB#FFFFFF#000000##FFFFFF
##2640AB1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2640ab;
/* rgb */ color: rgb(38, 64, 171);
/* oklch */ color: oklch(42.4% 0.174 267.6);
Tailwind
colors: {
  custom: {
    50: '#7674c5',
    500: '#2640ab',
    950: '#000000',
  },
}
SCSS
$custom: #2640ab;
$custom-light: #7674c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2640ab",
  "rgb": {
    "r": 38,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 228.271,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42391,
    "c": 0.17354,
    "h": 267.6
  },
  "luminance": 0.07019
}

Semantic roles & 50–950 ramp

primary
#2640AB
secondary
#C5B368
accent
#C641E7
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2640AB

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

Preview Lab → · Contrast checker → · Palette generator →

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