#2640B1#2640B1

#2640B1 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.181 H 267.6°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2640B1
RGBrgb(38, 64, 177)
HSLhsl(229, 65%, 42%)
HSVhsv(229, 79%, 69%)
CMYKcmyk(78.5%, 63.8%, 0%, 30.6%)
CIE-LABlab(32.37, 31.91, -62.68)
CIE-LCHlch(32.37, 70.33, 296.98°)
OKLaboklab(42.94% -0.0075 -0.1813)
OKLCHoklch(42.94% 0.181 267.6)
XYZxyz(10.5658, 7.2520, 42.4294)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2640B1 #B19726
analogous
#2686B1 #2640B1 #5226B1
triadic
#2640B1 #B12640 #40B126
tetradic
#2640B1 #B12686 #B19726 #26B152
square
#2640B1 #B12686 #B19726 #26B152
split-complementary
#2640B1 #B15226 #86B126
monochromatic
#101C4C #1B2E7F #2640B1 #3F5BD6 #7186E0

Accessibility & contrast

On white

8.57
#2640B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2640B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2640B1
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2640B1#FFFFFF#000000##FFFFFF
##2640B11.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2640b1;
/* rgb */ color: rgb(38, 64, 177);
/* oklch */ color: oklch(42.9% 0.181 267.6);
Tailwind
colors: {
  custom: {
    50: '#7774c9',
    500: '#2640b1',
    950: '#000000',
  },
}
SCSS
$custom: #2640b1;
$custom-light: #7774c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2640b1",
  "rgb": {
    "r": 38,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 228.777,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42942,
    "c": 0.18149,
    "h": 267.6
  },
  "luminance": 0.07253
}

Semantic roles & 50–950 ramp

primary
#2640B1
secondary
#C7B66B
accent
#C840E8
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2640B1

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

Preview Lab → · Contrast checker → · Palette generator →

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