#2640A9#2640A9

#2640A9 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.171 H 267.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#2640A9
RGBrgb(38, 64, 169)
HSLhsl(228, 63%, 41%)
HSVhsv(228, 78%, 66%)
CMYKcmyk(77.5%, 62.1%, 0%, 33.7%)
CIE-LABlab(31.68, 28.90, -59.05)
CIE-LCHlch(31.68, 65.74, 296.08°)
OKLaboklab(42.21% -0.0073 -0.1707)
OKLCHoklch(42.21% 0.171 267.5)
XYZxyz(9.7917, 6.9423, 38.3524)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2640A9 #A98F26
analogous
#2681A9 #2640A9 #4E26A9
triadic
#2640A9 #A92640 #40A926
tetradic
#2640A9 #A92681 #A98F26 #26A94E
square
#2640A9 #A92681 #A98F26 #26A94E
split-complementary
#2640A9 #A94E26 #81A926
monochromatic
#101A45 #1B2D77 #2640A9 #3A58D3 #6C82DE

Accessibility & contrast

On white

8.79
#2640A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2640A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2640A9
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2640A9#FFFFFF#000000##FFFFFF
##2640A91.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2640a9;
/* rgb */ color: rgb(38, 64, 169);
/* oklch */ color: oklch(42.2% 0.171 267.5);
Tailwind
colors: {
  custom: {
    50: '#7574c3',
    500: '#2640a9',
    950: '#000000',
  },
}
SCSS
$custom: #2640a9;
$custom-light: #7574c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2640a9",
  "rgb": {
    "r": 38,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 228.092,
    "s": 63.285,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4221,
    "c": 0.17086,
    "h": 267.5
  },
  "luminance": 0.06943
}

Semantic roles & 50–950 ramp

primary
#2640A9
secondary
#C4B267
accent
#C641E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2640A9

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

Preview Lab → · Contrast checker → · Palette generator →

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