#2640A2#2640A2

#2640A2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.161 H 267.4°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2640A2
RGBrgb(38, 64, 162)
HSLhsl(227, 62%, 39%)
HSVhsv(227, 77%, 64%)
CMYKcmyk(76.5%, 60.5%, 0%, 36.5%)
CIE-LABlab(31.08, 26.23, -55.81)
CIE-LCHlch(31.08, 61.66, 295.18°)
OKLaboklab(41.59% -0.0073 -0.1612)
OKLCHoklch(41.59% 0.161 267.4)
XYZxyz(9.1520, 6.6865, 34.9837)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2640A2 #A28826
analogous
#267EA2 #2640A2 #4A26A2
triadic
#2640A2 #A22640 #40A226
tetradic
#2640A2 #A2267E #A28826 #26A24A
square
#2640A2 #A2267E #A28826 #26A24A
split-complementary
#2640A2 #A24A26 #7EA226
monochromatic
#0F193F #1A2C70 #2640A2 #3556D0 #677FDB

Accessibility & contrast

On white

8.98
#2640A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2640A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2640A2
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2640A2#FFFFFF#000000##FFFFFF
##2640A21.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2640a2;
/* rgb */ color: rgb(38, 64, 162);
/* oklch */ color: oklch(41.6% 0.161 267.4);
Tailwind
colors: {
  custom: {
    50: '#7474be',
    500: '#2640a2',
    950: '#000000',
  },
}
SCSS
$custom: #2640a2;
$custom-light: #7474be;
$custom-dark: #000000;
JSON
{
  "hex": "#2640a2",
  "rgb": {
    "r": 38,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 227.419,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41585,
    "c": 0.16136,
    "h": 267.4
  },
  "luminance": 0.06687
}

Semantic roles & 50–950 ramp

primary
#2640A2
secondary
#C1AD63
accent
#C343E5
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2640A2

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

Preview Lab → · Contrast checker → · Palette generator →

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